Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:31: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-06-22 06:31:05,866 - INFO - taking picture
MAIN: 2026-06-22 06:31:05,866 - INFO - we take 1 photos in this while loop
MAIN: 2026-06-22 06:31:05,867 - INFO - /home/pi/Desktop/images/22062026/06/30/image_22062026_06_31_05_60391.jpg
MAIN: 2026-06-22 06:31:05,867 - INFO - duration: 0.9744001720000597
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:32:05,218 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:32:05,914 - INFO - taking picture
MAIN: 2026-06-22 06:32:05,914 - INFO - we take 2 photos in this while loop
MAIN: 2026-06-22 06:32:05,914 - INFO - /home/pi/Desktop/images/22062026/06/31/image_22062026_06_32_05_60113.jpg
MAIN: 2026-06-22 06:32:05,914 - INFO - duration: 0.9082041259998732
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:33:05,318 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:33:05,973 - INFO - taking picture
MAIN: 2026-06-22 06:33:05,973 - INFO - we take 3 photos in this while loop
MAIN: 2026-06-22 06:33:05,973 - INFO - /home/pi/Desktop/images/22062026/06/32/image_22062026_06_33_05_60072.jpg
MAIN: 2026-06-22 06:33:05,973 - INFO - duration: 0.8948445010000796
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:34: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-06-22 06:34:06,154 - INFO - taking picture
MAIN: 2026-06-22 06:34:06,154 - INFO - we take 4 photos in this while loop
MAIN: 2026-06-22 06:34:06,154 - INFO - /home/pi/Desktop/images/22062026/06/33/image_22062026_06_34_05_60150.jpg
MAIN: 2026-06-22 06:34:06,155 - INFO - duration: 0.9256210650000867
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06: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-06-22 06:35:06,369 - INFO - taking picture
MAIN: 2026-06-22 06:35:06,369 - INFO - we take 5 photos in this while loop
MAIN: 2026-06-22 06:35:06,370 - INFO - /home/pi/Desktop/images/22062026/06/34/image_22062026_06_35_05_60172.jpg
MAIN: 2026-06-22 06:35:06,370 - INFO - duration: 0.9678657889999158
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:36:05,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-06-22 06:36:06,515 - INFO - taking picture
MAIN: 2026-06-22 06:36:06,516 - INFO - we take 6 photos in this while loop
MAIN: 2026-06-22 06:36:06,516 - INFO - /home/pi/Desktop/images/22062026/06/35/image_22062026_06_36_05_60214.jpg
MAIN: 2026-06-22 06:36:06,516 - INFO - duration: 0.8993256900002962
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:37:05,947 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:37:06,650 - INFO - taking picture
MAIN: 2026-06-22 06:37:06,650 - INFO - we take 7 photos in this while loop
MAIN: 2026-06-22 06:37:06,651 - INFO - /home/pi/Desktop/images/22062026/06/36/image_22062026_06_37_05_60049.jpg
MAIN: 2026-06-22 06:37:06,651 - INFO - duration: 0.9842655169995851
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:38:05,077 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:38:05,731 - INFO - taking picture
MAIN: 2026-06-22 06:38:05,731 - INFO - we take 8 photos in this while loop
MAIN: 2026-06-22 06:38:05,731 - INFO - /home/pi/Desktop/images/22062026/06/37/image_22062026_06_38_05_59145.jpg
MAIN: 2026-06-22 06:38:05,731 - INFO - duration: 0.919171006000397
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:39:05,109 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:39:05,770 - INFO - taking picture
MAIN: 2026-06-22 06:39:05,770 - INFO - we take 9 photos in this while loop
MAIN: 2026-06-22 06:39:05,770 - INFO - /home/pi/Desktop/images/22062026/06/38/image_22062026_06_39_05_60031.jpg
MAIN: 2026-06-22 06:39:05,771 - INFO - duration: 0.9263852629992471
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:40:05,411 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:40:06,098 - INFO - taking picture
MAIN: 2026-06-22 06:40:06,098 - INFO - we take 10 photos in this while loop
MAIN: 2026-06-22 06:40:06,099 - INFO - /home/pi/Desktop/images/22062026/06/39/image_22062026_06_40_05_60357.jpg
MAIN: 2026-06-22 06:40:06,099 - INFO - duration: 0.8971772100003363
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:41:05,405 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:41:06,105 - INFO - taking picture
MAIN: 2026-06-22 06:41:06,105 - INFO - we take 11 photos in this while loop
MAIN: 2026-06-22 06:41:06,105 - INFO - /home/pi/Desktop/images/22062026/06/40/image_22062026_06_41_05_59906.jpg
MAIN: 2026-06-22 06:41:06,105 - INFO - duration: 0.9975337639998543
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:42: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-06-22 06:42:06,403 - INFO - taking picture
MAIN: 2026-06-22 06:42:06,403 - INFO - we take 12 photos in this while loop
MAIN: 2026-06-22 06:42:06,403 - INFO - /home/pi/Desktop/images/22062026/06/41/image_22062026_06_42_05_60380.jpg
MAIN: 2026-06-22 06:42:06,403 - INFO - duration: 0.9149963110003227
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:43:05,917 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:43:06,572 - INFO - taking picture
MAIN: 2026-06-22 06:43:06,573 - INFO - we take 13 photos in this while loop
MAIN: 2026-06-22 06:43:06,573 - INFO - /home/pi/Desktop/images/22062026/06/42/image_22062026_06_43_05_60161.jpg
MAIN: 2026-06-22 06:43:06,573 - INFO - duration: 0.9231514859993695
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:44:05,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-06-22 06:44:06,549 - INFO - taking picture
MAIN: 2026-06-22 06:44:06,549 - INFO - we take 14 photos in this while loop
MAIN: 2026-06-22 06:44:06,550 - INFO - /home/pi/Desktop/images/22062026/06/43/image_22062026_06_44_05_59934.jpg
MAIN: 2026-06-22 06:44:06,550 - INFO - duration: 0.9657922309997957
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:45:05,736 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:45:06,391 - INFO - taking picture
MAIN: 2026-06-22 06:45:06,392 - INFO - we take 15 photos in this while loop
MAIN: 2026-06-22 06:45:06,392 - INFO - /home/pi/Desktop/images/22062026/06/44/image_22062026_06_45_05_59896.jpg
MAIN: 2026-06-22 06:45:06,392 - INFO - duration: 0.9118360490001578
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:46:05,339 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:46:06,040 - INFO - taking picture
MAIN: 2026-06-22 06:46:06,041 - INFO - we take 16 photos in this while loop
MAIN: 2026-06-22 06:46:06,041 - INFO - /home/pi/Desktop/images/22062026/06/45/image_22062026_06_46_05_59594.jpg
MAIN: 2026-06-22 06:46:06,041 - INFO - duration: 0.9669790379994083
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:47:05,380 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:47:06,034 - INFO - taking picture
MAIN: 2026-06-22 06:47:06,034 - INFO - we take 17 photos in this while loop
MAIN: 2026-06-22 06:47:06,034 - INFO - /home/pi/Desktop/images/22062026/06/46/image_22062026_06_47_05_60037.jpg
MAIN: 2026-06-22 06:47:06,034 - INFO - duration: 0.9227430379996804
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:48:05,151 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:48:05,859 - INFO - taking picture
MAIN: 2026-06-22 06:48:05,859 - INFO - we take 18 photos in this while loop
MAIN: 2026-06-22 06:48:05,859 - INFO - /home/pi/Desktop/images/22062026/06/47/image_22062026_06_48_05_59770.jpg
MAIN: 2026-06-22 06:48:05,859 - INFO - duration: 0.9767772380000679
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:49:05,107 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:49:05,771 - INFO - taking picture
MAIN: 2026-06-22 06:49:05,771 - INFO - we take 19 photos in this while loop
MAIN: 2026-06-22 06:49:05,771 - INFO - /home/pi/Desktop/images/22062026/06/48/image_22062026_06_49_05_59952.jpg
MAIN: 2026-06-22 06:49:05,772 - INFO - duration: 0.9366741849989921
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:50:05,873 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:50:06,576 - INFO - taking picture
MAIN: 2026-06-22 06:50:06,577 - INFO - we take 20 photos in this while loop
MAIN: 2026-06-22 06:50:06,577 - INFO - /home/pi/Desktop/images/22062026/06/49/image_22062026_06_50_05_60763.jpg
MAIN: 2026-06-22 06:50:06,577 - INFO - duration: 0.9780933249985537
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:51:05,511 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:51:06,165 - INFO - taking picture
MAIN: 2026-06-22 06:51:06,166 - INFO - we take 21 photos in this while loop
MAIN: 2026-06-22 06:51:06,166 - INFO - /home/pi/Desktop/images/22062026/06/50/image_22062026_06_51_05_59649.jpg
MAIN: 2026-06-22 06:51:06,166 - INFO - duration: 0.917736903000332
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:52:05,203 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:52:05,856 - INFO - taking picture
MAIN: 2026-06-22 06:52:05,856 - INFO - we take 22 photos in this while loop
MAIN: 2026-06-22 06:52:05,856 - INFO - /home/pi/Desktop/images/22062026/06/51/image_22062026_06_52_05_59691.jpg
MAIN: 2026-06-22 06:52:05,856 - INFO - duration: 0.9167785400004504
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:53:04,854 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:53:05,597 - INFO - taking picture
MAIN: 2026-06-22 06:53:05,598 - INFO - we take 23 photos in this while loop
MAIN: 2026-06-22 06:53:05,598 - INFO - /home/pi/Desktop/images/22062026/06/52/image_22062026_06_53_04_59693.jpg
MAIN: 2026-06-22 06:53:05,598 - INFO - duration: 0.9650991569997132
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:54:04,908 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:54:05,605 - INFO - taking picture
MAIN: 2026-06-22 06:54:05,605 - INFO - we take 24 photos in this while loop
MAIN: 2026-06-22 06:54:05,605 - INFO - /home/pi/Desktop/images/22062026/06/53/image_22062026_06_54_04_60066.jpg
MAIN: 2026-06-22 06:54:05,605 - INFO - duration: 0.9058453319994442
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:55: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-06-22 06:55:05,751 - INFO - taking picture
MAIN: 2026-06-22 06:55:05,752 - INFO - we take 25 photos in this while loop
MAIN: 2026-06-22 06:55:05,752 - INFO - /home/pi/Desktop/images/22062026/06/54/image_22062026_06_55_05_60135.jpg
MAIN: 2026-06-22 06:55:05,752 - INFO - duration: 0.9167333680015872
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:56:05,058 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:56:05,752 - INFO - taking picture
MAIN: 2026-06-22 06:56:05,753 - INFO - we take 26 photos in this while loop
MAIN: 2026-06-22 06:56:05,753 - INFO - /home/pi/Desktop/images/22062026/06/55/image_22062026_06_56_05_59959.jpg
MAIN: 2026-06-22 06:56:05,753 - INFO - duration: 0.9577290570014156
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:57:05,230 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:57:05,925 - INFO - taking picture
MAIN: 2026-06-22 06:57:05,926 - INFO - we take 27 photos in this while loop
MAIN: 2026-06-22 06:57:05,926 - INFO - /home/pi/Desktop/images/22062026/06/56/image_22062026_06_57_05_60154.jpg
MAIN: 2026-06-22 06:57:05,926 - INFO - duration: 0.9759992540002713
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:58: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-06-22 06:58:05,858 - INFO - taking picture
MAIN: 2026-06-22 06:58:05,858 - INFO - we take 28 photos in this while loop
MAIN: 2026-06-22 06:58:05,858 - INFO - /home/pi/Desktop/images/22062026/06/57/image_22062026_06_58_05_59939.jpg
MAIN: 2026-06-22 06:58:05,859 - INFO - duration: 0.9696229590008443
Will output and maybe also write in take_pic/pic_log.txt
MAIN: 2026-06-22 06:59:04,921 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 06:59:05,575 - INFO - taking picture
MAIN: 2026-06-22 06:59:05,576 - INFO - we take 29 photos in this while loop
MAIN: 2026-06-22 06:59:05,576 - INFO - /home/pi/Desktop/images/22062026/06/58/image_22062026_06_59_04_59768.jpg
MAIN: 2026-06-22 06:59:05,576 - INFO - duration: 0.9188434020015848
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:00:05,161 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:00:05,844 - INFO - taking picture
MAIN: 2026-06-22 07:00:05,844 - INFO - we take 30 photos in this while loop
MAIN: 2026-06-22 07:00:05,844 - INFO - /home/pi/Desktop/images/22062026/06/59/image_22062026_07_00_05_60291.jpg
MAIN: 2026-06-22 07:00:05,844 - INFO - duration: 0.8960567289996106
MAIN: 2026-06-22 07:00:05,845 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/00'
MAIN: 2026-06-22 07:00:06,006 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:01:05,089 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:01:05,355 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:01:05,755 - INFO - taking picture
MAIN: 2026-06-22 07:01:05,756 - INFO - we take 31 photos in this while loop
MAIN: 2026-06-22 07:01:05,756 - INFO - /home/pi/Desktop/images/22062026/07/00/image_22062026_07_01_05_59866.jpg
MAIN: 2026-06-22 07:01:05,756 - INFO - duration: 0.9406402080003318
MAIN: 2026-06-22 07:01:05,756 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:02:05,005 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:02:05,670 - INFO - taking picture
MAIN: 2026-06-22 07:02:05,670 - INFO - we take 32 photos in this while loop
MAIN: 2026-06-22 07:02:05,670 - INFO - /home/pi/Desktop/images/22062026/07/01/image_22062026_07_02_05_59949.jpg
MAIN: 2026-06-22 07:02:05,670 - INFO - duration: 0.9061191989985673
MAIN: 2026-06-22 07:02:05,671 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/02'
MAIN: 2026-06-22 07:02: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:03:04,604 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:03:05,946 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:03:06,600 - INFO - taking picture
MAIN: 2026-06-22 07:03:06,601 - INFO - we take 33 photos in this while loop
MAIN: 2026-06-22 07:03:06,601 - INFO - /home/pi/Desktop/images/22062026/07/02/image_22062026_07_03_05_60937.jpg
MAIN: 2026-06-22 07:03:06,601 - INFO - duration: 0.8993772519988852
MAIN: 2026-06-22 07:03:06,601 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:04:05,225 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:04:05,849 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:04:06,568 - INFO - taking picture
MAIN: 2026-06-22 07:04:06,568 - INFO - we take 34 photos in this while loop
MAIN: 2026-06-22 07:04:06,568 - INFO - /home/pi/Desktop/images/22062026/07/03/image_22062026_07_04_05_59913.jpg
MAIN: 2026-06-22 07:04:06,568 - INFO - duration: 0.9531038029999763
MAIN: 2026-06-22 07:04:06,569 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 07:05: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-06-22 07:05:05,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-06-22 07:05:06,551 - INFO - taking picture
MAIN: 2026-06-22 07:05:06,551 - INFO - we take 35 photos in this while loop
MAIN: 2026-06-22 07:05:06,551 - INFO - /home/pi/Desktop/images/22062026/07/04/image_22062026_07_05_05_60038.jpg
MAIN: 2026-06-22 07:05:06,551 - INFO - duration: 0.8979675379996479
MAIN: 2026-06-22 07:05:06,552 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:06:05,666 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:06:05,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-06-22 07:06:06,550 - INFO - taking picture
MAIN: 2026-06-22 07:06:06,550 - INFO - we take 36 photos in this while loop
MAIN: 2026-06-22 07:06:06,550 - INFO - /home/pi/Desktop/images/22062026/07/05/image_22062026_07_06_05_59985.jpg
MAIN: 2026-06-22 07:06:06,550 - INFO - duration: 0.9115993639989028
MAIN: 2026-06-22 07:06:06,550 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:07: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-06-22 07:07:05,538 - INFO - taking picture
MAIN: 2026-06-22 07:07:05,539 - INFO - we take 37 photos in this while loop
MAIN: 2026-06-22 07:07:05,539 - INFO - /home/pi/Desktop/images/22062026/07/06/image_22062026_07_07_04_58938.jpg
MAIN: 2026-06-22 07:07:05,539 - INFO - duration: 0.9621118560007744
MAIN: 2026-06-22 07:07:05,539 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/07'
MAIN: 2026-06-22 07:07:05,546 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:08: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-06-22 07:08:05,560 - INFO - taking picture
MAIN: 2026-06-22 07:08:05,561 - INFO - we take 38 photos in this while loop
MAIN: 2026-06-22 07:08:05,561 - INFO - /home/pi/Desktop/images/22062026/07/07/image_22062026_07_08_04_60069.jpg
MAIN: 2026-06-22 07:08:05,561 - INFO - duration: 0.9146530489997531
MAIN: 2026-06-22 07:08:05,561 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/08'
MAIN: 2026-06-22 07:08: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-06-22 07:09:04,698 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:09:05,940 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:09:06,636 - INFO - taking picture
MAIN: 2026-06-22 07:09:06,636 - INFO - we take 39 photos in this while loop
MAIN: 2026-06-22 07:09:06,636 - INFO - /home/pi/Desktop/images/22062026/07/08/image_22062026_07_09_05_61029.jpg
MAIN: 2026-06-22 07:09:06,636 - INFO - duration: 0.9607059980007762
MAIN: 2026-06-22 07:09:06,636 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/09'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:10: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-06-22 07:10:05,838 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:10:06,492 - INFO - taking picture
MAIN: 2026-06-22 07:10:06,492 - INFO - we take 40 photos in this while loop
MAIN: 2026-06-22 07:10:06,492 - INFO - /home/pi/Desktop/images/22062026/07/09/image_22062026_07_10_05_59914.jpg
MAIN: 2026-06-22 07:10:06,492 - INFO - duration: 0.9020356090004498
MAIN: 2026-06-22 07:10:06,493 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 07:11:05,138 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:11:05,543 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:11:06,197 - INFO - taking picture
MAIN: 2026-06-22 07:11:06,197 - INFO - we take 41 photos in this while loop
MAIN: 2026-06-22 07:11:06,197 - INFO - /home/pi/Desktop/images/22062026/07/10/image_22062026_07_11_05_59740.jpg
MAIN: 2026-06-22 07:11:06,197 - INFO - duration: 0.8661224760016921
MAIN: 2026-06-22 07:11:06,197 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:12:05,243 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:12:05,439 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:12:05,992 - INFO - taking picture
MAIN: 2026-06-22 07:12:05,993 - INFO - we take 42 photos in this while loop
MAIN: 2026-06-22 07:12:05,993 - INFO - /home/pi/Desktop/images/22062026/07/11/image_22062026_07_12_05_59664.jpg
MAIN: 2026-06-22 07:12:05,993 - INFO - duration: 0.9969933219999803
MAIN: 2026-06-22 07:12:05,993 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 07:13:05,034 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:13:05,585 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:13:05,697 - INFO - taking picture
MAIN: 2026-06-22 07:13:05,697 - INFO - we take 43 photos in this while loop
MAIN: 2026-06-22 07:13:05,697 - INFO - /home/pi/Desktop/images/22062026/07/12/image_22062026_07_13_05_59770.jpg
MAIN: 2026-06-22 07:13:05,697 - INFO - duration: 0.9304676850006217
MAIN: 2026-06-22 07:13:05,698 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:14: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-06-22 07:14:05,660 - INFO - taking picture
MAIN: 2026-06-22 07:14:05,660 - INFO - we take 44 photos in this while loop
MAIN: 2026-06-22 07:14:05,660 - INFO - /home/pi/Desktop/images/22062026/07/13/image_22062026_07_14_05_59992.jpg
MAIN: 2026-06-22 07:14:05,660 - INFO - duration: 0.9012495819988544
MAIN: 2026-06-22 07:14:05,661 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/14'
MAIN: 2026-06-22 07:14:05,698 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:15:04,746 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:15: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-06-22 07:15:05,408 - INFO - taking picture
MAIN: 2026-06-22 07:15:05,408 - INFO - we take 45 photos in this while loop
MAIN: 2026-06-22 07:15:05,408 - INFO - /home/pi/Desktop/images/22062026/07/14/image_22062026_07_15_04_59742.jpg
MAIN: 2026-06-22 07:15:05,408 - INFO - duration: 0.9061333110003034
MAIN: 2026-06-22 07:15:05,409 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/15'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:16:05,007 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:16:05,773 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:16:06,432 - INFO - taking picture
MAIN: 2026-06-22 07:16:06,432 - INFO - we take 46 photos in this while loop
MAIN: 2026-06-22 07:16:06,432 - INFO - /home/pi/Desktop/images/22062026/07/15/image_22062026_07_16_05_61019.jpg
MAIN: 2026-06-22 07:16:06,432 - INFO - duration: 0.9108297639995726
MAIN: 2026-06-22 07:16:06,432 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/16'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:17:05,259 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:17: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-06-22 07:17:06,296 - INFO - taking picture
MAIN: 2026-06-22 07:17:06,296 - INFO - we take 47 photos in this while loop
MAIN: 2026-06-22 07:17:06,297 - INFO - /home/pi/Desktop/images/22062026/07/16/image_22062026_07_17_05_59908.jpg
MAIN: 2026-06-22 07:17:06,297 - INFO - duration: 0.867131471999528
MAIN: 2026-06-22 07:17:06,297 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/17'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:18: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-06-22 07:18:05,420 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:18:06,091 - INFO - taking picture
MAIN: 2026-06-22 07:18:06,091 - INFO - we take 48 photos in this while loop
MAIN: 2026-06-22 07:18:06,091 - INFO - /home/pi/Desktop/images/22062026/07/17/image_22062026_07_18_05_59708.jpg
MAIN: 2026-06-22 07:18:06,092 - INFO - duration: 0.9535280670006614
MAIN: 2026-06-22 07:18:06,092 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/18'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:19:05,173 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:19:05,652 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:19:05,871 - INFO - taking picture
MAIN: 2026-06-22 07:19:05,871 - INFO - we take 49 photos in this while loop
MAIN: 2026-06-22 07:19:05,871 - INFO - /home/pi/Desktop/images/22062026/07/18/image_22062026_07_19_05_59766.jpg
MAIN: 2026-06-22 07:19:05,871 - INFO - duration: 0.9669548249985382
MAIN: 2026-06-22 07:19:05,872 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/19'
MAIN: 2026-06-22 07:20: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

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:20:05,961 - INFO - taking picture
MAIN: 2026-06-22 07:20:05,961 - INFO - we take 50 photos in this while loop
MAIN: 2026-06-22 07:20:05,961 - INFO - /home/pi/Desktop/images/22062026/07/19/image_22062026_07_20_05_60089.jpg
MAIN: 2026-06-22 07:20:05,961 - INFO - duration: 0.9676927839991549
MAIN: 2026-06-22 07:20:05,962 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/20'
MAIN: 2026-06-22 07:20:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:21:04,785 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:21:05,300 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:21:05,955 - INFO - taking picture
MAIN: 2026-06-22 07:21:05,955 - INFO - we take 51 photos in this while loop
MAIN: 2026-06-22 07:21:05,955 - INFO - /home/pi/Desktop/images/22062026/07/20/image_22062026_07_21_05_60096.jpg
MAIN: 2026-06-22 07:21:05,956 - INFO - duration: 0.8653938970001036
MAIN: 2026-06-22 07:21:05,956 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:22:05,161 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:22:05,385 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:22:05,825 - INFO - taking picture
MAIN: 2026-06-22 07:22:05,825 - INFO - we take 52 photos in this while loop
MAIN: 2026-06-22 07:22:05,825 - INFO - /home/pi/Desktop/images/22062026/07/21/image_22062026_07_22_05_59804.jpg
MAIN: 2026-06-22 07:22:05,825 - INFO - duration: 0.9303081560010469
MAIN: 2026-06-22 07:22:05,825 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/22'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:23:04,878 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:23:05,183 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:23:05,554 - INFO - taking picture
MAIN: 2026-06-22 07:23:05,554 - INFO - we take 53 photos in this while loop
MAIN: 2026-06-22 07:23:05,555 - INFO - /home/pi/Desktop/images/22062026/07/22/image_22062026_07_23_04_59720.jpg
MAIN: 2026-06-22 07:23:05,555 - INFO - duration: 0.9395640109996748
MAIN: 2026-06-22 07:23:05,555 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/23'
MAIN: 2026-06-22 07:24: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

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:24:05,429 - INFO - taking picture
MAIN: 2026-06-22 07:24:05,430 - INFO - we take 54 photos in this while loop
MAIN: 2026-06-22 07:24:05,430 - INFO - /home/pi/Desktop/images/22062026/07/23/image_22062026_07_24_04_59910.jpg
MAIN: 2026-06-22 07:24:05,430 - INFO - duration: 0.9046296759988763
MAIN: 2026-06-22 07:24:05,430 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/24'
MAIN: 2026-06-22 07:24:05,853 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:25: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-06-22 07:25: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-06-22 07:25:06,498 - INFO - taking picture
MAIN: 2026-06-22 07:25:06,498 - INFO - we take 55 photos in this while loop
MAIN: 2026-06-22 07:25:06,498 - INFO - /home/pi/Desktop/images/22062026/07/24/image_22062026_07_25_05_61042.jpg
MAIN: 2026-06-22 07:25:06,498 - INFO - duration: 0.9309634900000674
MAIN: 2026-06-22 07:25:06,499 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/25'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:26:05,104 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:26:05,545 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:26:06,197 - INFO - taking picture
MAIN: 2026-06-22 07:26:06,198 - INFO - we take 56 photos in this while loop
MAIN: 2026-06-22 07:26:06,198 - INFO - /home/pi/Desktop/images/22062026/07/25/image_22062026_07_26_05_59766.jpg
MAIN: 2026-06-22 07:26:06,198 - INFO - duration: 0.8632966129989654
MAIN: 2026-06-22 07:26:06,198 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:27: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-06-22 07:27: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-06-22 07:27:05,941 - INFO - taking picture
MAIN: 2026-06-22 07:27:05,942 - INFO - we take 57 photos in this while loop
MAIN: 2026-06-22 07:27:05,942 - INFO - /home/pi/Desktop/images/22062026/07/26/image_22062026_07_27_05_59707.jpg
MAIN: 2026-06-22 07:27:05,942 - INFO - duration: 0.9001651270009461
MAIN: 2026-06-22 07:27:05,942 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:28:05,051 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:28:05,429 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:28:05,719 - INFO - taking picture
MAIN: 2026-06-22 07:28:05,720 - INFO - we take 58 photos in this while loop
MAIN: 2026-06-22 07:28:05,720 - INFO - /home/pi/Desktop/images/22062026/07/27/image_22062026_07_28_05_59796.jpg
MAIN: 2026-06-22 07:28:05,720 - INFO - duration: 0.8817724960008491
MAIN: 2026-06-22 07:28:05,720 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/28'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:29:04,892 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:29:05,260 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:29:05,606 - INFO - taking picture
MAIN: 2026-06-22 07:29:05,606 - INFO - we take 59 photos in this while loop
MAIN: 2026-06-22 07:29:05,606 - INFO - /home/pi/Desktop/images/22062026/07/28/image_22062026_07_29_04_59779.jpg
MAIN: 2026-06-22 07:29:05,606 - INFO - duration: 0.9890886539997155
MAIN: 2026-06-22 07:29:05,607 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/29'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:30:05,265 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:30:06,005 - INFO - taking picture
MAIN: 2026-06-22 07:30:06,006 - INFO - we take 60 photos in this while loop
MAIN: 2026-06-22 07:30:06,006 - INFO - /home/pi/Desktop/images/22062026/07/29/image_22062026_07_30_05_60394.jpg
MAIN: 2026-06-22 07:30:06,006 - INFO - duration: 0.9946669600012683
MAIN: 2026-06-22 07:30:06,006 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/30'
MAIN: 2026-06-22 07:30:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:31:04,799 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:31:05,138 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:31:05,793 - INFO - taking picture
MAIN: 2026-06-22 07:31:05,793 - INFO - we take 61 photos in this while loop
MAIN: 2026-06-22 07:31:05,793 - INFO - /home/pi/Desktop/images/22062026/07/30/image_22062026_07_31_05_59916.jpg
MAIN: 2026-06-22 07:31:05,794 - INFO - duration: 0.865492427999925
MAIN: 2026-06-22 07:31:05,794 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:32: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-06-22 07:32: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-06-22 07:32:05,441 - INFO - taking picture
MAIN: 2026-06-22 07:32:05,441 - INFO - we take 62 photos in this while loop
MAIN: 2026-06-22 07:32:05,441 - INFO - /home/pi/Desktop/images/22062026/07/31/image_22062026_07_32_04_59593.jpg
MAIN: 2026-06-22 07:32:05,441 - INFO - duration: 0.9198801040001854
MAIN: 2026-06-22 07:32:05,442 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:33:05,078 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:33:05,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

MAIN: 2026-06-22 07:33:06,348 - INFO - taking picture
MAIN: 2026-06-22 07:33:06,349 - INFO - we take 63 photos in this while loop
MAIN: 2026-06-22 07:33:06,349 - INFO - /home/pi/Desktop/images/22062026/07/32/image_22062026_07_33_05_60925.jpg
MAIN: 2026-06-22 07:33:06,349 - INFO - duration: 0.901790156000061
MAIN: 2026-06-22 07:33:06,349 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:34:05,236 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:34:05,585 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:34:05,903 - INFO - taking picture
MAIN: 2026-06-22 07:34:05,904 - INFO - we take 64 photos in this while loop
MAIN: 2026-06-22 07:34:05,904 - INFO - /home/pi/Desktop/images/22062026/07/33/image_22062026_07_34_05_59538.jpg
MAIN: 2026-06-22 07:34:05,904 - INFO - duration: 0.9183955600001354
MAIN: 2026-06-22 07:34:05,904 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/34'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:35:05,245 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:35: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-06-22 07:35:05,920 - INFO - taking picture
MAIN: 2026-06-22 07:35:05,920 - INFO - we take 65 photos in this while loop
MAIN: 2026-06-22 07:35:05,920 - INFO - /home/pi/Desktop/images/22062026/07/34/image_22062026_07_35_05_60019.jpg
MAIN: 2026-06-22 07:35:05,921 - INFO - duration: 0.9153520029994979
MAIN: 2026-06-22 07:35:05,921 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/35'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:36:04,872 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:36:05,537 - INFO - taking picture
MAIN: 2026-06-22 07:36:05,537 - INFO - we take 66 photos in this while loop
MAIN: 2026-06-22 07:36:05,538 - INFO - /home/pi/Desktop/images/22062026/07/35/image_22062026_07_36_04_59631.jpg
MAIN: 2026-06-22 07:36:05,538 - INFO - duration: 0.9010869840003579
MAIN: 2026-06-22 07:36:05,538 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/36'
MAIN: 2026-06-22 07:36: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:37: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-06-22 07:37: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-06-22 07:37:06,336 - INFO - taking picture
MAIN: 2026-06-22 07:37:06,336 - INFO - we take 67 photos in this while loop
MAIN: 2026-06-22 07:37:06,336 - INFO - /home/pi/Desktop/images/22062026/07/36/image_22062026_07_37_05_60804.jpg
MAIN: 2026-06-22 07:37:06,336 - INFO - duration: 0.8953479520005203
MAIN: 2026-06-22 07:37:06,337 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:38:05,012 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:38: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-06-22 07:38:06,003 - INFO - taking picture
MAIN: 2026-06-22 07:38:06,004 - INFO - we take 68 photos in this while loop
MAIN: 2026-06-22 07:38:06,004 - INFO - /home/pi/Desktop/images/22062026/07/37/image_22062026_07_38_05_59693.jpg
MAIN: 2026-06-22 07:38:06,004 - INFO - duration: 0.8696278979987255
MAIN: 2026-06-22 07:38:06,004 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/38'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:39: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-06-22 07:39: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-06-22 07:39:05,660 - INFO - taking picture
MAIN: 2026-06-22 07:39:05,660 - INFO - we take 69 photos in this while loop
MAIN: 2026-06-22 07:39:05,660 - INFO - /home/pi/Desktop/images/22062026/07/38/image_22062026_07_39_04_59595.jpg
MAIN: 2026-06-22 07:39:05,660 - INFO - duration: 0.9304337239991582
MAIN: 2026-06-22 07:39:05,660 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 07:40:04,965 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:40:05,662 - INFO - taking picture
MAIN: 2026-06-22 07:40:05,662 - INFO - we take 70 photos in this while loop
MAIN: 2026-06-22 07:40:05,662 - INFO - /home/pi/Desktop/images/22062026/07/39/image_22062026_07_40_04_59994.jpg
MAIN: 2026-06-22 07:40:05,662 - INFO - duration: 0.9383459529999527
MAIN: 2026-06-22 07:40:05,663 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/40'
MAIN: 2026-06-22 07:40:05,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:41:05,395 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:41:05,885 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:41:06,587 - INFO - taking picture
MAIN: 2026-06-22 07:41:06,587 - INFO - we take 71 photos in this while loop
MAIN: 2026-06-22 07:41:06,587 - INFO - /home/pi/Desktop/images/22062026/07/40/image_22062026_07_41_05_60947.jpg
MAIN: 2026-06-22 07:41:06,587 - INFO - duration: 0.9158805070001108
MAIN: 2026-06-22 07:41:06,588 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:42:05,739 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:42:05,861 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:42:06,518 - INFO - taking picture
MAIN: 2026-06-22 07:42:06,518 - INFO - we take 72 photos in this while loop
MAIN: 2026-06-22 07:42:06,518 - INFO - /home/pi/Desktop/images/22062026/07/41/image_22062026_07_42_05_59898.jpg
MAIN: 2026-06-22 07:42:06,518 - INFO - duration: 0.9477676749993407
MAIN: 2026-06-22 07:42:06,518 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:43:04,591 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:43:05,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-06-22 07:43:06,651 - INFO - taking picture
MAIN: 2026-06-22 07:43:06,651 - INFO - we take 73 photos in this while loop
MAIN: 2026-06-22 07:43:06,652 - INFO - /home/pi/Desktop/images/22062026/07/42/image_22062026_07_43_05_60150.jpg
MAIN: 2026-06-22 07:43:06,652 - INFO - duration: 0.9303118469997571
MAIN: 2026-06-22 07:43:06,652 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:44:04,928 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:44:05,223 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:44:05,597 - INFO - taking picture
MAIN: 2026-06-22 07:44:05,597 - INFO - we take 74 photos in this while loop
MAIN: 2026-06-22 07:44:05,597 - INFO - /home/pi/Desktop/images/22062026/07/43/image_22062026_07_44_04_58937.jpg
MAIN: 2026-06-22 07:44:05,598 - INFO - duration: 0.9391961830006039
MAIN: 2026-06-22 07:44:05,598 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 07:45:05,000 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:45:05,437 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:45:05,677 - INFO - taking picture
MAIN: 2026-06-22 07:45:05,678 - INFO - we take 75 photos in this while loop
MAIN: 2026-06-22 07:45:05,678 - INFO - /home/pi/Desktop/images/22062026/07/44/image_22062026_07_45_05_60113.jpg
MAIN: 2026-06-22 07:45:05,678 - INFO - duration: 0.9055616650002776
MAIN: 2026-06-22 07:45:05,678 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:46:05,185 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:46:05,511 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:46:05,875 - INFO - taking picture
MAIN: 2026-06-22 07:46:05,876 - INFO - we take 76 photos in this while loop
MAIN: 2026-06-22 07:46:05,876 - INFO - /home/pi/Desktop/images/22062026/07/45/image_22062026_07_46_05_60138.jpg
MAIN: 2026-06-22 07:46:05,876 - INFO - duration: 0.9650672640000266
MAIN: 2026-06-22 07:46:05,876 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:47: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-06-22 07:47:05,488 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:47:06,156 - INFO - taking picture
MAIN: 2026-06-22 07:47:06,156 - INFO - we take 77 photos in this while loop
MAIN: 2026-06-22 07:47:06,156 - INFO - /home/pi/Desktop/images/22062026/07/46/image_22062026_07_47_05_60305.jpg
MAIN: 2026-06-22 07:47:06,156 - INFO - duration: 0.9397513579988299
MAIN: 2026-06-22 07:47:06,156 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:48: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-06-22 07:48:05,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

MAIN: 2026-06-22 07:48:06,324 - INFO - taking picture
MAIN: 2026-06-22 07:48:06,325 - INFO - we take 78 photos in this while loop
MAIN: 2026-06-22 07:48:06,325 - INFO - /home/pi/Desktop/images/22062026/07/47/image_22062026_07_48_05_60161.jpg
MAIN: 2026-06-22 07:48:06,325 - INFO - duration: 0.9474050499993609
MAIN: 2026-06-22 07:48:06,325 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:49:04,442 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:49: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-06-22 07:49:06,500 - INFO - taking picture
MAIN: 2026-06-22 07:49:06,500 - INFO - we take 79 photos in this while loop
MAIN: 2026-06-22 07:49:06,500 - INFO - /home/pi/Desktop/images/22062026/07/48/image_22062026_07_49_05_60133.jpg
MAIN: 2026-06-22 07:49:06,501 - INFO - duration: 0.9894973130012659
MAIN: 2026-06-22 07:49:06,501 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:50:05,096 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:50: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-06-22 07:50:05,842 - INFO - taking picture
MAIN: 2026-06-22 07:50:05,842 - INFO - we take 80 photos in this while loop
MAIN: 2026-06-22 07:50:05,843 - INFO - /home/pi/Desktop/images/22062026/07/49/image_22062026_07_50_05_59398.jpg
MAIN: 2026-06-22 07:50:05,843 - INFO - duration: 0.9331845119995705
MAIN: 2026-06-22 07:50:05,843 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/50'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:51: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-06-22 07:51:05,746 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:51:06,403 - INFO - taking picture
MAIN: 2026-06-22 07:51:06,403 - INFO - we take 81 photos in this while loop
MAIN: 2026-06-22 07:51:06,403 - INFO - /home/pi/Desktop/images/22062026/07/50/image_22062026_07_51_05_60562.jpg
MAIN: 2026-06-22 07:51:06,403 - INFO - duration: 0.9312209270010499
MAIN: 2026-06-22 07:51:06,404 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:52:04,828 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:52:05,269 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:52:05,503 - INFO - taking picture
MAIN: 2026-06-22 07:52:05,504 - INFO - we take 82 photos in this while loop
MAIN: 2026-06-22 07:52:05,504 - INFO - /home/pi/Desktop/images/22062026/07/51/image_22062026_07_52_04_59096.jpg
MAIN: 2026-06-22 07:52:05,504 - INFO - duration: 0.9353093139998236
MAIN: 2026-06-22 07:52:05,504 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/52'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:53: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-06-22 07:53:05,920 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:53:06,576 - INFO - taking picture
MAIN: 2026-06-22 07:53:06,576 - INFO - we take 83 photos in this while loop
MAIN: 2026-06-22 07:53:06,576 - INFO - /home/pi/Desktop/images/22062026/07/52/image_22062026_07_53_05_61076.jpg
MAIN: 2026-06-22 07:53:06,576 - INFO - duration: 0.9317440510003507
MAIN: 2026-06-22 07:53:06,577 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:54: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-06-22 07:54: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 ! 
MAIN: 2026-06-22 07:54:06,207 - INFO - taking picture
MAIN: 2026-06-22 07:54:06,208 - INFO - we take 84 photos in this while loop
MAIN: 2026-06-22 07:54:06,208 - INFO - /home/pi/Desktop/images/22062026/07/53/image_22062026_07_54_05_59632.jpg
MAIN: 2026-06-22 07:54:06,208 - INFO - duration: 0.9300430210005288
MAIN: 2026-06-22 07:54:06,208 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/54'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:55:05,237 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:55: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-06-22 07:55:06,411 - INFO - taking picture
MAIN: 2026-06-22 07:55:06,412 - INFO - we take 85 photos in this while loop
MAIN: 2026-06-22 07:55:06,412 - INFO - /home/pi/Desktop/images/22062026/07/54/image_22062026_07_55_05_60216.jpg
MAIN: 2026-06-22 07:55:06,412 - INFO - duration: 0.9175445799992303
MAIN: 2026-06-22 07:55:06,412 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/55'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:56:05,194 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:56:05,888 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:56:06,578 - INFO - taking picture
MAIN: 2026-06-22 07:56:06,578 - INFO - we take 86 photos in this while loop
MAIN: 2026-06-22 07:56:06,578 - INFO - /home/pi/Desktop/images/22062026/07/55/image_22062026_07_56_05_60168.jpg
MAIN: 2026-06-22 07:56:06,578 - INFO - duration: 0.9156093710007553
MAIN: 2026-06-22 07:56:06,578 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:57:05,028 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:57:05,674 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:57:06,330 - INFO - taking picture
MAIN: 2026-06-22 07:57:06,330 - INFO - we take 87 photos in this while loop
MAIN: 2026-06-22 07:57:06,330 - INFO - /home/pi/Desktop/images/22062026/07/56/image_22062026_07_57_05_59774.jpg
MAIN: 2026-06-22 07:57:06,330 - INFO - duration: 0.8929517600008694
MAIN: 2026-06-22 07:57:06,331 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:58:05,549 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:58:05,844 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:58:06,501 - INFO - taking picture
MAIN: 2026-06-22 07:58:06,501 - INFO - we take 88 photos in this while loop
MAIN: 2026-06-22 07:58:06,501 - INFO - /home/pi/Desktop/images/22062026/07/57/image_22062026_07_58_05_60167.jpg
MAIN: 2026-06-22 07:58:06,501 - INFO - duration: 0.8969045440007903
MAIN: 2026-06-22 07:58:06,502 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/58'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 07:59:05,404 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 07:59:05,666 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 07:59:06,330 - INFO - taking picture
MAIN: 2026-06-22 07:59:06,330 - INFO - we take 89 photos in this while loop
MAIN: 2026-06-22 07:59:06,330 - INFO - /home/pi/Desktop/images/22062026/07/58/image_22062026_07_59_05_59819.jpg
MAIN: 2026-06-22 07:59:06,330 - INFO - duration: 0.9063439609999477
MAIN: 2026-06-22 07:59:06,331 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/07/59'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:00: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-06-22 08:00:05,726 - INFO - taking picture
MAIN: 2026-06-22 08:00:05,726 - INFO - we take 90 photos in this while loop
MAIN: 2026-06-22 08:00:05,726 - INFO - /home/pi/Desktop/images/22062026/07/59/image_22062026_08_00_04_59300.jpg
MAIN: 2026-06-22 08:00:05,727 - INFO - duration: 1.0018012309992628
MAIN: 2026-06-22 08:00:05,727 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/00'
MAIN: 2026-06-22 08:00:05,973 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:01: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-06-22 08:01:05,469 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:01:05,711 - INFO - taking picture
MAIN: 2026-06-22 08:01:05,711 - INFO - we take 91 photos in this while loop
MAIN: 2026-06-22 08:01:05,711 - INFO - /home/pi/Desktop/images/22062026/08/00/image_22062026_08_01_05_60072.jpg
MAIN: 2026-06-22 08:01:05,711 - INFO - duration: 0.9143254190003063
MAIN: 2026-06-22 08:01:05,712 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:02: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-06-22 08:02: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-06-22 08:02:05,906 - INFO - taking picture
MAIN: 2026-06-22 08:02:05,907 - INFO - we take 92 photos in this while loop
MAIN: 2026-06-22 08:02:05,907 - INFO - /home/pi/Desktop/images/22062026/08/01/image_22062026_08_02_05_60163.jpg
MAIN: 2026-06-22 08:02:05,907 - INFO - duration: 0.9460745190008311
MAIN: 2026-06-22 08:02:05,907 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/02'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:03: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-06-22 08:03:05,688 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:03:05,926 - INFO - taking picture
MAIN: 2026-06-22 08:03:05,927 - INFO - we take 93 photos in this while loop
MAIN: 2026-06-22 08:03:05,927 - INFO - /home/pi/Desktop/images/22062026/08/02/image_22062026_08_03_05_60028.jpg
MAIN: 2026-06-22 08:03:05,927 - INFO - duration: 0.9379391839993332
MAIN: 2026-06-22 08:03:05,927 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08: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-06-22 08:04:05,286 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:04:05,953 - INFO - taking picture
MAIN: 2026-06-22 08:04:05,953 - INFO - we take 94 photos in this while loop
MAIN: 2026-06-22 08:04:05,953 - INFO - /home/pi/Desktop/images/22062026/08/03/image_22062026_08_04_05_59998.jpg
MAIN: 2026-06-22 08:04:05,953 - INFO - duration: 0.9649705470001209
MAIN: 2026-06-22 08:04:05,953 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/04'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:05:05,063 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:05:05,106 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:05:05,805 - INFO - taking picture
MAIN: 2026-06-22 08:05:05,805 - INFO - we take 95 photos in this while loop
MAIN: 2026-06-22 08:05:05,805 - INFO - /home/pi/Desktop/images/22062026/08/04/image_22062026_08_05_05_59892.jpg
MAIN: 2026-06-22 08:05:05,805 - INFO - duration: 0.9244345959996281
MAIN: 2026-06-22 08:05:05,806 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:06:05,150 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:06:05,433 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:06:05,824 - INFO - taking picture
MAIN: 2026-06-22 08:06:05,824 - INFO - we take 96 photos in this while loop
MAIN: 2026-06-22 08:06:05,824 - INFO - /home/pi/Desktop/images/22062026/08/05/image_22062026_08_06_05_60020.jpg
MAIN: 2026-06-22 08:06:05,824 - INFO - duration: 0.9224807800001145
MAIN: 2026-06-22 08:06:05,825 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:07:05,115 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:07:05,286 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:07:05,779 - INFO - taking picture
MAIN: 2026-06-22 08:07:05,780 - INFO - we take 97 photos in this while loop
MAIN: 2026-06-22 08:07:05,780 - INFO - /home/pi/Desktop/images/22062026/08/06/image_22062026_08_07_05_59947.jpg
MAIN: 2026-06-22 08:07:05,780 - INFO - duration: 0.9309687309996661
MAIN: 2026-06-22 08:07:05,780 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/07'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:08:05,314 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:08:05,697 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:08:06,028 - INFO - taking picture
MAIN: 2026-06-22 08:08:06,029 - INFO - we take 98 photos in this while loop
MAIN: 2026-06-22 08:08:06,029 - INFO - /home/pi/Desktop/images/22062026/08/07/image_22062026_08_08_05_60181.jpg
MAIN: 2026-06-22 08:08:06,029 - INFO - duration: 0.9985107110005629
MAIN: 2026-06-22 08:08:06,029 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/08'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:09: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-06-22 08:09:05,621 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:09:05,997 - INFO - taking picture
MAIN: 2026-06-22 08:09:05,997 - INFO - we take 99 photos in this while loop
MAIN: 2026-06-22 08:09:05,997 - INFO - /home/pi/Desktop/images/22062026/08/08/image_22062026_08_09_05_60036.jpg
MAIN: 2026-06-22 08:09:05,998 - INFO - duration: 0.9308642050000344
MAIN: 2026-06-22 08:09:05,998 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/09'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:10:05,684 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:10:05,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-06-22 08:10:06,348 - INFO - taking picture
MAIN: 2026-06-22 08:10:06,349 - INFO - we take 100 photos in this while loop
MAIN: 2026-06-22 08:10:06,349 - INFO - /home/pi/Desktop/images/22062026/08/09/image_22062026_08_10_05_60360.jpg
MAIN: 2026-06-22 08:10:06,349 - INFO - duration: 0.9213045189990225
MAIN: 2026-06-22 08:10:06,349 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/10'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:11:05,134 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:11:05,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-06-22 08:11:06,292 - INFO - taking picture
MAIN: 2026-06-22 08:11:06,292 - INFO - we take 101 photos in this while loop
MAIN: 2026-06-22 08:11:06,292 - INFO - /home/pi/Desktop/images/22062026/08/10/image_22062026_08_11_05_59961.jpg
MAIN: 2026-06-22 08:11:06,293 - INFO - duration: 0.9035340069985978
MAIN: 2026-06-22 08:11:06,293 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:12:05,566 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:12:05,789 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:12:06,496 - INFO - taking picture
MAIN: 2026-06-22 08:12:06,497 - INFO - we take 102 photos in this while loop
MAIN: 2026-06-22 08:12:06,497 - INFO - /home/pi/Desktop/images/22062026/08/11/image_22062026_08_12_05_60106.jpg
MAIN: 2026-06-22 08:12:06,497 - INFO - duration: 1.0012855240001954
MAIN: 2026-06-22 08:12:06,497 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:13:04,917 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:13:05,586 - INFO - taking picture
MAIN: 2026-06-22 08:13:05,586 - INFO - we take 103 photos in this while loop
MAIN: 2026-06-22 08:13:05,586 - INFO - /home/pi/Desktop/images/22062026/08/12/image_22062026_08_13_04_59173.jpg
MAIN: 2026-06-22 08:13:05,586 - INFO - duration: 0.9177047200009838
MAIN: 2026-06-22 08:13:05,587 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/13'
MAIN: 2026-06-22 08:13:05,589 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:14:04,867 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:14:05,092 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:14:05,540 - INFO - taking picture
MAIN: 2026-06-22 08:14:05,540 - INFO - we take 104 photos in this while loop
MAIN: 2026-06-22 08:14:05,540 - INFO - /home/pi/Desktop/images/22062026/08/13/image_22062026_08_14_04_59926.jpg
MAIN: 2026-06-22 08:14:05,541 - INFO - duration: 0.9447780219998094
MAIN: 2026-06-22 08:14:05,541 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/14'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:15:04,868 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:15:05,162 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:15:05,588 - INFO - taking picture
MAIN: 2026-06-22 08:15:05,589 - INFO - we take 105 photos in this while loop
MAIN: 2026-06-22 08:15:05,589 - INFO - /home/pi/Desktop/images/22062026/08/14/image_22062026_08_15_04_60013.jpg
MAIN: 2026-06-22 08:15:05,589 - INFO - duration: 0.9798672400011128
MAIN: 2026-06-22 08:15:05,589 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/15'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:16: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-06-22 08:16:05,168 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:16:05,827 - INFO - taking picture
MAIN: 2026-06-22 08:16:05,827 - INFO - we take 106 photos in this while loop
MAIN: 2026-06-22 08:16:05,827 - INFO - /home/pi/Desktop/images/22062026/08/15/image_22062026_08_16_05_60270.jpg
MAIN: 2026-06-22 08:16:05,828 - INFO - duration: 0.9483739580009569
MAIN: 2026-06-22 08:16:05,828 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/16'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:17:05,115 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:17:05,401 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:17:05,804 - INFO - taking picture
MAIN: 2026-06-22 08:17:05,804 - INFO - we take 107 photos in this while loop
MAIN: 2026-06-22 08:17:05,804 - INFO - /home/pi/Desktop/images/22062026/08/16/image_22062026_08_17_05_59969.jpg
MAIN: 2026-06-22 08:17:05,805 - INFO - duration: 0.9556679279994569
MAIN: 2026-06-22 08:17:05,805 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/17'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:18:05,322 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:18: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 ! 
MAIN: 2026-06-22 08:18:06,034 - INFO - taking picture
MAIN: 2026-06-22 08:18:06,034 - INFO - we take 108 photos in this while loop
MAIN: 2026-06-22 08:18:06,034 - INFO - /home/pi/Desktop/images/22062026/08/17/image_22062026_08_18_05_60190.jpg
MAIN: 2026-06-22 08:18:06,034 - INFO - duration: 0.9944236760002241
MAIN: 2026-06-22 08:18:06,034 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 08:19:05,372 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:19:05,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-06-22 08:19:06,038 - INFO - taking picture
MAIN: 2026-06-22 08:19:06,038 - INFO - we take 109 photos in this while loop
MAIN: 2026-06-22 08:19:06,039 - INFO - /home/pi/Desktop/images/22062026/08/18/image_22062026_08_19_05_60064.jpg
MAIN: 2026-06-22 08:19:06,039 - INFO - duration: 0.9348019659992133
MAIN: 2026-06-22 08:19:06,039 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 08:20:05,330 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:20:05,999 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:20:06,030 - INFO - taking picture
MAIN: 2026-06-22 08:20:06,030 - INFO - we take 110 photos in this while loop
MAIN: 2026-06-22 08:20:06,030 - INFO - /home/pi/Desktop/images/22062026/08/19/image_22062026_08_20_05_59998.jpg
MAIN: 2026-06-22 08:20:06,030 - INFO - duration: 0.9277108839996799
MAIN: 2026-06-22 08:20:06,031 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 08:21:04,889 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:21:05,250 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:21:05,909 - INFO - taking picture
MAIN: 2026-06-22 08:21:05,909 - INFO - we take 111 photos in this while loop
MAIN: 2026-06-22 08:21:05,910 - INFO - /home/pi/Desktop/images/22062026/08/20/image_22062026_08_21_05_59932.jpg
MAIN: 2026-06-22 08:21:05,910 - INFO - duration: 0.8746405389993015
MAIN: 2026-06-22 08:21:05,910 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:22: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-06-22 08:22:05,092 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:22:05,457 - INFO - taking picture
MAIN: 2026-06-22 08:22:05,457 - INFO - we take 112 photos in this while loop
MAIN: 2026-06-22 08:22:05,457 - INFO - /home/pi/Desktop/images/22062026/08/21/image_22062026_08_22_04_59515.jpg
MAIN: 2026-06-22 08:22:05,457 - INFO - duration: 0.9063838799993391
MAIN: 2026-06-22 08:22:05,458 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/22'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:23: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-06-22 08:23: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-06-22 08:23:06,409 - INFO - taking picture
MAIN: 2026-06-22 08:23:06,409 - INFO - we take 113 photos in this while loop
MAIN: 2026-06-22 08:23:06,409 - INFO - /home/pi/Desktop/images/22062026/08/22/image_22062026_08_23_05_60925.jpg
MAIN: 2026-06-22 08:23:06,410 - INFO - duration: 0.9325845280000067
MAIN: 2026-06-22 08:23:06,410 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/23'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:24:05,684 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:24:05,879 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:24:06,538 - INFO - taking picture
MAIN: 2026-06-22 08:24:06,538 - INFO - we take 114 photos in this while loop
MAIN: 2026-06-22 08:24:06,538 - INFO - /home/pi/Desktop/images/22062026/08/23/image_22062026_08_24_05_60126.jpg
MAIN: 2026-06-22 08:24:06,538 - INFO - duration: 0.9346967689998564
MAIN: 2026-06-22 08:24:06,539 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 08:25:05,739 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:25:05,794 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:25:06,468 - INFO - taking picture
MAIN: 2026-06-22 08:25:06,468 - INFO - we take 115 photos in this while loop
MAIN: 2026-06-22 08:25:06,468 - INFO - /home/pi/Desktop/images/22062026/08/24/image_22062026_08_25_05_59901.jpg
MAIN: 2026-06-22 08:25:06,468 - INFO - duration: 0.9629716759991425
MAIN: 2026-06-22 08:25:06,469 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 08:26:04,823 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:26:05,460 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:26:06,160 - INFO - taking picture
MAIN: 2026-06-22 08:26:06,160 - INFO - we take 116 photos in this while loop
MAIN: 2026-06-22 08:26:06,160 - INFO - /home/pi/Desktop/images/22062026/08/25/image_22062026_08_26_05_59735.jpg
MAIN: 2026-06-22 08:26:06,160 - INFO - duration: 0.9187565800002631
MAIN: 2026-06-22 08:26:06,160 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:27:04,935 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:27:05,631 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:27:06,339 - INFO - taking picture
MAIN: 2026-06-22 08:27:06,339 - INFO - we take 117 photos in this while loop
MAIN: 2026-06-22 08:27:06,339 - INFO - /home/pi/Desktop/images/22062026/08/26/image_22062026_08_27_05_60097.jpg
MAIN: 2026-06-22 08:27:06,339 - INFO - duration: 1.0001219929999934
MAIN: 2026-06-22 08:27:06,340 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:28:05,265 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:28:05,502 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:28:06,160 - INFO - taking picture
MAIN: 2026-06-22 08:28:06,160 - INFO - we take 118 photos in this while loop
MAIN: 2026-06-22 08:28:06,160 - INFO - /home/pi/Desktop/images/22062026/08/27/image_22062026_08_28_05_59908.jpg
MAIN: 2026-06-22 08:28:06,160 - INFO - duration: 0.9126261669989617
MAIN: 2026-06-22 08:28:06,161 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/28'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:29:05,124 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:29:05,347 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:29:06,535 - INFO - taking picture
MAIN: 2026-06-22 08:29:06,535 - INFO - we take 119 photos in this while loop
MAIN: 2026-06-22 08:29:06,535 - INFO - /home/pi/Desktop/images/22062026/08/28/image_22062026_08_29_05_59630.jpg
MAIN: 2026-06-22 08:29:06,536 - INFO - duration: 1.6570375970004534
MAIN: 2026-06-22 08:29:06,536 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/29'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:30:05,156 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:30:05,851 - INFO - taking picture
MAIN: 2026-06-22 08:30:05,851 - INFO - we take 120 photos in this while loop
MAIN: 2026-06-22 08:30:05,851 - INFO - /home/pi/Desktop/images/22062026/08/29/image_22062026_08_30_05_60027.jpg
MAIN: 2026-06-22 08:30:05,851 - INFO - duration: 0.9453687010009162
MAIN: 2026-06-22 08:30:05,852 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/30'
MAIN: 2026-06-22 08:30:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:31: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-06-22 08:31:05,753 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:31:05,942 - INFO - taking picture
MAIN: 2026-06-22 08:31:05,942 - INFO - we take 121 photos in this while loop
MAIN: 2026-06-22 08:31:05,942 - INFO - /home/pi/Desktop/images/22062026/08/30/image_22062026_08_31_05_60079.jpg
MAIN: 2026-06-22 08:31:05,942 - INFO - duration: 0.957067294000808
MAIN: 2026-06-22 08:31:05,943 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 08:32:04,992 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:32:05,319 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:32:05,979 - INFO - taking picture
MAIN: 2026-06-22 08:32:05,980 - INFO - we take 122 photos in this while loop
MAIN: 2026-06-22 08:32:05,980 - INFO - /home/pi/Desktop/images/22062026/08/31/image_22062026_08_32_05_60118.jpg
MAIN: 2026-06-22 08:32:05,980 - INFO - duration: 0.8762492610003392
MAIN: 2026-06-22 08:32:05,980 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:33:05,020 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:33:05,395 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:33:06,118 - INFO - taking picture
MAIN: 2026-06-22 08:33:06,118 - INFO - we take 123 photos in this while loop
MAIN: 2026-06-22 08:33:06,118 - INFO - /home/pi/Desktop/images/22062026/08/32/image_22062026_08_33_05_60054.jpg
MAIN: 2026-06-22 08:33:06,119 - INFO - duration: 0.9606281690012111
MAIN: 2026-06-22 08:33:06,119 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:34:05,085 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:34:05,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-06-22 08:34:06,576 - INFO - taking picture
MAIN: 2026-06-22 08:34:06,577 - INFO - we take 124 photos in this while loop
MAIN: 2026-06-22 08:34:06,577 - INFO - /home/pi/Desktop/images/22062026/08/33/image_22062026_08_34_05_60503.jpg
MAIN: 2026-06-22 08:34:06,577 - INFO - duration: 0.9157289869999659
MAIN: 2026-06-22 08:34:06,577 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/34'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:35:04,914 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:35:05,586 - INFO - taking picture
MAIN: 2026-06-22 08:35:05,586 - INFO - we take 125 photos in this while loop
MAIN: 2026-06-22 08:35:05,586 - INFO - /home/pi/Desktop/images/22062026/08/34/image_22062026_08_35_04_59023.jpg
MAIN: 2026-06-22 08:35:05,586 - INFO - duration: 0.901181937999354
MAIN: 2026-06-22 08:35:05,586 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/35'
MAIN: 2026-06-22 08:35:05,746 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:36:05,064 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:36: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-06-22 08:36:05,744 - INFO - taking picture
MAIN: 2026-06-22 08:36:05,744 - INFO - we take 126 photos in this while loop
MAIN: 2026-06-22 08:36:05,744 - INFO - /home/pi/Desktop/images/22062026/08/35/image_22062026_08_36_05_60122.jpg
MAIN: 2026-06-22 08:36:05,744 - INFO - duration: 0.9372942099998909
MAIN: 2026-06-22 08:36:05,745 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/36'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:37:04,871 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:37: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-06-22 08:37:05,795 - INFO - taking picture
MAIN: 2026-06-22 08:37:05,795 - INFO - we take 127 photos in this while loop
MAIN: 2026-06-22 08:37:05,795 - INFO - /home/pi/Desktop/images/22062026/08/36/image_22062026_08_37_05_60064.jpg
MAIN: 2026-06-22 08:37:05,795 - INFO - duration: 0.9235279179993086
MAIN: 2026-06-22 08:37:05,796 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:38:05,327 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:38:05,369 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:38:05,997 - INFO - taking picture
MAIN: 2026-06-22 08:38:05,998 - INFO - we take 128 photos in this while loop
MAIN: 2026-06-22 08:38:05,998 - INFO - /home/pi/Desktop/images/22062026/08/37/image_22062026_08_38_05_60198.jpg
MAIN: 2026-06-22 08:38:05,998 - INFO - duration: 0.927818082000158
MAIN: 2026-06-22 08:38:05,998 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/38'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:39:05,159 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:39:05,318 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:39:05,983 - INFO - taking picture
MAIN: 2026-06-22 08:39:05,983 - INFO - we take 129 photos in this while loop
MAIN: 2026-06-22 08:39:05,983 - INFO - /home/pi/Desktop/images/22062026/08/38/image_22062026_08_39_05_59964.jpg
MAIN: 2026-06-22 08:39:05,984 - INFO - duration: 0.9489276570002403
MAIN: 2026-06-22 08:39:05,984 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/39'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:40:05,493 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:40:05,837 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:40:06,200 - INFO - taking picture
MAIN: 2026-06-22 08:40:06,200 - INFO - we take 130 photos in this while loop
MAIN: 2026-06-22 08:40:06,200 - INFO - /home/pi/Desktop/images/22062026/08/39/image_22062026_08_40_05_60201.jpg
MAIN: 2026-06-22 08:40:06,201 - INFO - duration: 0.9639846400004899
MAIN: 2026-06-22 08:40:06,201 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/40'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:41: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-06-22 08:41: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-06-22 08:41:06,172 - INFO - taking picture
MAIN: 2026-06-22 08:41:06,172 - INFO - we take 131 photos in this while loop
MAIN: 2026-06-22 08:41:06,172 - INFO - /home/pi/Desktop/images/22062026/08/40/image_22062026_08_41_05_59996.jpg
MAIN: 2026-06-22 08:41:06,173 - INFO - duration: 0.9389575370005332
MAIN: 2026-06-22 08:41:06,173 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:42: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-06-22 08:42:05,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-06-22 08:42:06,373 - INFO - taking picture
MAIN: 2026-06-22 08:42:06,373 - INFO - we take 132 photos in this while loop
MAIN: 2026-06-22 08:42:06,373 - INFO - /home/pi/Desktop/images/22062026/08/41/image_22062026_08_42_05_60187.jpg
MAIN: 2026-06-22 08:42:06,374 - INFO - duration: 0.9521160389995202
MAIN: 2026-06-22 08:42:06,374 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 08:43:04,860 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:43:05,664 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:43:06,330 - INFO - taking picture
MAIN: 2026-06-22 08:43:06,330 - INFO - we take 133 photos in this while loop
MAIN: 2026-06-22 08:43:06,330 - INFO - /home/pi/Desktop/images/22062026/08/42/image_22062026_08_43_05_59970.jpg
MAIN: 2026-06-22 08:43:06,330 - INFO - duration: 0.9386594490006246
MAIN: 2026-06-22 08:43:06,331 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:44:05,030 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:44: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-06-22 08:44:06,306 - INFO - taking picture
MAIN: 2026-06-22 08:44:06,306 - INFO - we take 134 photos in this while loop
MAIN: 2026-06-22 08:44:06,306 - INFO - /home/pi/Desktop/images/22062026/08/43/image_22062026_08_44_05_59901.jpg
MAIN: 2026-06-22 08:44:06,306 - INFO - duration: 1.0126873629997135
MAIN: 2026-06-22 08:44:06,307 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/44'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:45:05,738 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:45:05,880 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:45:06,547 - INFO - taking picture
MAIN: 2026-06-22 08:45:06,548 - INFO - we take 135 photos in this while loop
MAIN: 2026-06-22 08:45:06,548 - INFO - /home/pi/Desktop/images/22062026/08/44/image_22062026_08_45_05_60314.jpg
MAIN: 2026-06-22 08:45:06,548 - INFO - duration: 0.9394925799988414
MAIN: 2026-06-22 08:45:06,548 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:46: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-06-22 08:46:05,423 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:46:05,480 - INFO - taking picture
MAIN: 2026-06-22 08:46:05,481 - INFO - we take 136 photos in this while loop
MAIN: 2026-06-22 08:46:05,481 - INFO - /home/pi/Desktop/images/22062026/08/45/image_22062026_08_46_04_58969.jpg
MAIN: 2026-06-22 08:46:05,481 - INFO - duration: 0.9031382070006657
MAIN: 2026-06-22 08:46:05,482 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:47:05,209 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:47:05,252 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:47:05,937 - INFO - taking picture
MAIN: 2026-06-22 08:47:05,937 - INFO - we take 137 photos in this while loop
MAIN: 2026-06-22 08:47:05,937 - INFO - /home/pi/Desktop/images/22062026/08/46/image_22062026_08_47_05_60336.jpg
MAIN: 2026-06-22 08:47:05,937 - INFO - duration: 1.0225093579992972
MAIN: 2026-06-22 08:47:05,937 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:48: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-06-22 08:48:05,673 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:48:06,228 - INFO - taking picture
MAIN: 2026-06-22 08:48:06,228 - INFO - we take 138 photos in this while loop
MAIN: 2026-06-22 08:48:06,228 - INFO - /home/pi/Desktop/images/22062026/08/47/image_22062026_08_48_05_60400.jpg
MAIN: 2026-06-22 08:48:06,228 - INFO - duration: 0.9127689480010304
MAIN: 2026-06-22 08:48:06,228 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:49:04,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-06-22 08:49:05,580 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:49:06,245 - INFO - taking picture
MAIN: 2026-06-22 08:49:06,245 - INFO - we take 139 photos in this while loop
MAIN: 2026-06-22 08:49:06,245 - INFO - /home/pi/Desktop/images/22062026/08/48/image_22062026_08_49_05_59995.jpg
MAIN: 2026-06-22 08:49:06,245 - INFO - duration: 0.9343167269998958
MAIN: 2026-06-22 08:49:06,246 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 08:50: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-06-22 08:50:05,493 - INFO - taking picture
MAIN: 2026-06-22 08:50:05,493 - INFO - we take 140 photos in this while loop
MAIN: 2026-06-22 08:50:05,493 - INFO - /home/pi/Desktop/images/22062026/08/49/image_22062026_08_50_04_59273.jpg
MAIN: 2026-06-22 08:50:05,494 - INFO - duration: 0.9088487530007114
MAIN: 2026-06-22 08:50:05,494 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/50'
MAIN: 2026-06-22 08:50:05,692 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:51:04,911 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:51:05,062 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:51:05,582 - INFO - taking picture
MAIN: 2026-06-22 08:51:05,583 - INFO - we take 141 photos in this while loop
MAIN: 2026-06-22 08:51:05,583 - INFO - /home/pi/Desktop/images/22062026/08/50/image_22062026_08_51_04_60077.jpg
MAIN: 2026-06-22 08:51:05,583 - INFO - duration: 0.9210270739986299
MAIN: 2026-06-22 08:51:05,583 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:52:05,033 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:52:05,187 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:52:05,733 - INFO - taking picture
MAIN: 2026-06-22 08:52:05,733 - INFO - we take 142 photos in this while loop
MAIN: 2026-06-22 08:52:05,733 - INFO - /home/pi/Desktop/images/22062026/08/51/image_22062026_08_52_05_60086.jpg
MAIN: 2026-06-22 08:52:05,733 - INFO - duration: 0.9845319960004417
MAIN: 2026-06-22 08:52:05,733 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/52'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:53:04,874 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:53:05,181 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:53:05,555 - INFO - taking picture
MAIN: 2026-06-22 08:53:05,556 - INFO - we take 143 photos in this while loop
MAIN: 2026-06-22 08:53:05,556 - INFO - /home/pi/Desktop/images/22062026/08/52/image_22062026_08_53_04_59853.jpg
MAIN: 2026-06-22 08:53:05,556 - INFO - duration: 0.9542033130001073
MAIN: 2026-06-22 08:53:05,556 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 08:54:04,926 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:54:05,588 - INFO - taking picture
MAIN: 2026-06-22 08:54:05,588 - INFO - we take 144 photos in this while loop
MAIN: 2026-06-22 08:54:05,588 - INFO - /home/pi/Desktop/images/22062026/08/53/image_22062026_08_54_04_60086.jpg
MAIN: 2026-06-22 08:54:05,588 - INFO - duration: 0.8995164240004669
MAIN: 2026-06-22 08:54:05,588 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/54'
MAIN: 2026-06-22 08:54:05,643 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:55: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-06-22 08:55:05,835 - INFO - taking picture
MAIN: 2026-06-22 08:55:05,835 - INFO - we take 145 photos in this while loop
MAIN: 2026-06-22 08:55:05,835 - INFO - /home/pi/Desktop/images/22062026/08/54/image_22062026_08_55_05_60220.jpg
MAIN: 2026-06-22 08:55:05,835 - INFO - duration: 0.9256897159993969
MAIN: 2026-06-22 08:55:05,835 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/55'
MAIN: 2026-06-22 08:55:05,883 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:56:05,096 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:56:05,419 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:56:06,086 - INFO - taking picture
MAIN: 2026-06-22 08:56:06,086 - INFO - we take 146 photos in this while loop
MAIN: 2026-06-22 08:56:06,086 - INFO - /home/pi/Desktop/images/22062026/08/55/image_22062026_08_56_05_60297.jpg
MAIN: 2026-06-22 08:56:06,087 - INFO - duration: 0.879267656000593
MAIN: 2026-06-22 08:56:06,087 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 08:57:04,985 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08: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-06-22 08:57:06,371 - INFO - taking picture
MAIN: 2026-06-22 08:57:06,371 - INFO - we take 147 photos in this while loop
MAIN: 2026-06-22 08:57:06,371 - INFO - /home/pi/Desktop/images/22062026/08/56/image_22062026_08_57_05_60221.jpg
MAIN: 2026-06-22 08:57:06,371 - INFO - duration: 0.9425771839996742
MAIN: 2026-06-22 08:57:06,371 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:58:05,550 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 08:58:05,911 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 08:58:06,576 - INFO - taking picture
MAIN: 2026-06-22 08:58:06,577 - INFO - we take 148 photos in this while loop
MAIN: 2026-06-22 08:58:06,577 - INFO - /home/pi/Desktop/images/22062026/08/57/image_22062026_08_58_05_60252.jpg
MAIN: 2026-06-22 08:58:06,577 - INFO - duration: 0.8955305519993999
MAIN: 2026-06-22 08:58:06,577 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/58'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 08:59: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-06-22 08:59: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-06-22 08:59:05,538 - INFO - taking picture
MAIN: 2026-06-22 08:59:05,538 - INFO - we take 149 photos in this while loop
MAIN: 2026-06-22 08:59:05,538 - INFO - /home/pi/Desktop/images/22062026/08/58/image_22062026_08_59_04_58905.jpg
MAIN: 2026-06-22 08:59:05,538 - INFO - duration: 0.9507639620005648
MAIN: 2026-06-22 08:59:05,538 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/08/59'
MAIN: 2026-06-22 09:00:05,072 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:00:05,754 - INFO - taking picture
MAIN: 2026-06-22 09:00:05,754 - INFO - we take 150 photos in this while loop
MAIN: 2026-06-22 09:00:05,754 - INFO - /home/pi/Desktop/images/22062026/08/59/image_22062026_09_00_05_60243.jpg
MAIN: 2026-06-22 09:00:05,754 - INFO - duration: 0.9237260469999455
MAIN: 2026-06-22 09:00:05,755 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/00'
MAIN: 2026-06-22 09:00:06,126 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:01: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-06-22 09:01:04,914 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:01:05,576 - INFO - taking picture
MAIN: 2026-06-22 09:01:05,577 - INFO - we take 151 photos in this while loop
MAIN: 2026-06-22 09:01:05,577 - INFO - /home/pi/Desktop/images/22062026/09/00/image_22062026_09_01_04_59854.jpg
MAIN: 2026-06-22 09:01:05,577 - INFO - duration: 0.8912363660001574
MAIN: 2026-06-22 09:01:05,577 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:02:04,857 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:02:05,206 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:02:05,535 - INFO - taking picture
MAIN: 2026-06-22 09:02:05,535 - INFO - we take 152 photos in this while loop
MAIN: 2026-06-22 09:02:05,535 - INFO - /home/pi/Desktop/images/22062026/09/01/image_22062026_09_02_04_59902.jpg
MAIN: 2026-06-22 09:02:05,535 - INFO - duration: 0.9468381209990184
MAIN: 2026-06-22 09:02:05,535 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:03:05,131 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:03:05,969 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:03:06,635 - INFO - taking picture
MAIN: 2026-06-22 09:03:06,635 - INFO - we take 153 photos in this while loop
MAIN: 2026-06-22 09:03:06,635 - INFO - /home/pi/Desktop/images/22062026/09/02/image_22062026_09_03_05_61110.jpg
MAIN: 2026-06-22 09:03:06,635 - INFO - duration: 0.9367456310010311
MAIN: 2026-06-22 09:03:06,635 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:04:04,911 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09: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 ! 
MAIN: 2026-06-22 09:04:05,583 - INFO - taking picture
MAIN: 2026-06-22 09:04:05,583 - INFO - we take 154 photos in this while loop
MAIN: 2026-06-22 09:04:05,583 - INFO - /home/pi/Desktop/images/22062026/09/03/image_22062026_09_04_04_58979.jpg
MAIN: 2026-06-22 09:04:05,584 - INFO - duration: 0.9061163509977632
MAIN: 2026-06-22 09:04:05,584 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/04'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:05:05,109 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:05:05,809 - INFO - taking picture
MAIN: 2026-06-22 09:05:05,809 - INFO - we take 155 photos in this while loop
MAIN: 2026-06-22 09:05:05,809 - INFO - /home/pi/Desktop/images/22062026/09/04/image_22062026_09_05_05_60202.jpg
MAIN: 2026-06-22 09:05:05,809 - INFO - duration: 0.9290521540024201
MAIN: 2026-06-22 09:05:05,809 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/05'
MAIN: 2026-06-22 09:05: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-06-22 09:06:05,266 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:06:05,862 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:06:05,937 - INFO - taking picture
MAIN: 2026-06-22 09:06:05,937 - INFO - we take 156 photos in this while loop
MAIN: 2026-06-22 09:06:05,938 - INFO - /home/pi/Desktop/images/22062026/09/05/image_22062026_09_06_05_60140.jpg
MAIN: 2026-06-22 09:06:05,938 - INFO - duration: 0.9175611030004802
MAIN: 2026-06-22 09:06:05,938 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:07:04,698 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:07:05,295 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:07:06,060 - INFO - taking picture
MAIN: 2026-06-22 09:07:06,060 - INFO - we take 157 photos in this while loop
MAIN: 2026-06-22 09:07:06,060 - INFO - /home/pi/Desktop/images/22062026/09/06/image_22062026_09_07_05_60055.jpg
MAIN: 2026-06-22 09:07:06,060 - INFO - duration: 0.9844481520012778
MAIN: 2026-06-22 09:07:06,060 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:08:05,197 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:08:05,638 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:08:06,307 - INFO - taking picture
MAIN: 2026-06-22 09:08:06,308 - INFO - we take 158 photos in this while loop
MAIN: 2026-06-22 09:08:06,308 - INFO - /home/pi/Desktop/images/22062026/09/07/image_22062026_09_08_05_60341.jpg
MAIN: 2026-06-22 09:08:06,308 - INFO - duration: 0.8907647619998897
MAIN: 2026-06-22 09:08:06,308 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:09:05,201 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:09:05,748 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:09:06,451 - INFO - taking picture
MAIN: 2026-06-22 09:09:06,451 - INFO - we take 159 photos in this while loop
MAIN: 2026-06-22 09:09:06,451 - INFO - /home/pi/Desktop/images/22062026/09/08/image_22062026_09_09_05_60096.jpg
MAIN: 2026-06-22 09:09:06,451 - INFO - duration: 0.9373731349987793
MAIN: 2026-06-22 09:09:06,452 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/09'
MAIN: 2026-06-22 09:10: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-06-22 09:10:05,569 - INFO - taking picture
MAIN: 2026-06-22 09:10:05,569 - INFO - we take 160 photos in this while loop
MAIN: 2026-06-22 09:10:05,569 - INFO - /home/pi/Desktop/images/22062026/09/09/image_22062026_09_10_04_59086.jpg
MAIN: 2026-06-22 09:10:05,569 - INFO - duration: 0.968581383000128
MAIN: 2026-06-22 09:10:05,570 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/10'
MAIN: 2026-06-22 09:10:05,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:11:04,988 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:11: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-06-22 09:11:05,671 - INFO - taking picture
MAIN: 2026-06-22 09:11:05,671 - INFO - we take 161 photos in this while loop
MAIN: 2026-06-22 09:11:05,672 - INFO - /home/pi/Desktop/images/22062026/09/10/image_22062026_09_11_04_60120.jpg
MAIN: 2026-06-22 09:11:05,672 - INFO - duration: 0.9506040039996151
MAIN: 2026-06-22 09:11:05,672 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:12:04,823 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:12:04,946 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:12:05,621 - INFO - taking picture
MAIN: 2026-06-22 09:12:05,621 - INFO - we take 162 photos in this while loop
MAIN: 2026-06-22 09:12:05,621 - INFO - /home/pi/Desktop/images/22062026/09/11/image_22062026_09_12_04_59937.jpg
MAIN: 2026-06-22 09:12:05,622 - INFO - duration: 0.9626807800013921
MAIN: 2026-06-22 09:12:05,622 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:13:04,834 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:13:05,055 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:13:05,547 - INFO - taking picture
MAIN: 2026-06-22 09:13:05,547 - INFO - we take 163 photos in this while loop
MAIN: 2026-06-22 09:13:05,547 - INFO - /home/pi/Desktop/images/22062026/09/12/image_22062026_09_13_04_59926.jpg
MAIN: 2026-06-22 09:13:05,547 - INFO - duration: 0.9618380579995573
MAIN: 2026-06-22 09:13:05,548 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:14:04,997 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:14:05,393 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:14:05,706 - INFO - taking picture
MAIN: 2026-06-22 09:14:05,707 - INFO - we take 164 photos in this while loop
MAIN: 2026-06-22 09:14:05,707 - INFO - /home/pi/Desktop/images/22062026/09/13/image_22062026_09_14_04_60145.jpg
MAIN: 2026-06-22 09:14:05,707 - INFO - duration: 0.975364059999265
MAIN: 2026-06-22 09:14:05,707 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/14'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:15: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-06-22 09:15: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 ! 
MAIN: 2026-06-22 09:15:05,913 - INFO - taking picture
MAIN: 2026-06-22 09:15:05,913 - INFO - we take 165 photos in this while loop
MAIN: 2026-06-22 09:15:05,914 - INFO - /home/pi/Desktop/images/22062026/09/14/image_22062026_09_15_05_60271.jpg
MAIN: 2026-06-22 09:15:05,914 - INFO - duration: 0.9102933930007566
MAIN: 2026-06-22 09:15:05,914 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/15'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:16:05,239 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:16:05,414 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:16:05,915 - INFO - taking picture
MAIN: 2026-06-22 09:16:05,915 - INFO - we take 166 photos in this while loop
MAIN: 2026-06-22 09:16:05,916 - INFO - /home/pi/Desktop/images/22062026/09/15/image_22062026_09_16_05_59969.jpg
MAIN: 2026-06-22 09:16:05,916 - INFO - duration: 0.9428448879989446
MAIN: 2026-06-22 09:16:05,916 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:17: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-06-22 09:17:05,700 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:17:05,995 - INFO - taking picture
MAIN: 2026-06-22 09:17:05,995 - INFO - we take 167 photos in this while loop
MAIN: 2026-06-22 09:17:05,995 - INFO - /home/pi/Desktop/images/22062026/09/16/image_22062026_09_17_05_60067.jpg
MAIN: 2026-06-22 09:17:05,995 - INFO - duration: 0.9550222079997184
MAIN: 2026-06-22 09:17:05,996 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:18:05,378 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:18:05,698 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:18:06,121 - INFO - taking picture
MAIN: 2026-06-22 09:18:06,122 - INFO - we take 168 photos in this while loop
MAIN: 2026-06-22 09:18:06,122 - INFO - /home/pi/Desktop/images/22062026/09/17/image_22062026_09_18_05_60083.jpg
MAIN: 2026-06-22 09:18:06,122 - INFO - duration: 0.9987108269997407
MAIN: 2026-06-22 09:18:06,122 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/18'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:19: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-06-22 09:19: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-06-22 09:19:06,477 - INFO - taking picture
MAIN: 2026-06-22 09:19:06,477 - INFO - we take 169 photos in this while loop
MAIN: 2026-06-22 09:19:06,477 - INFO - /home/pi/Desktop/images/22062026/09/18/image_22062026_09_19_05_60351.jpg
MAIN: 2026-06-22 09:19:06,477 - INFO - duration: 1.0026238989994454
MAIN: 2026-06-22 09:19:06,478 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:20: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-06-22 09:20:05,379 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:20:05,568 - INFO - taking picture
MAIN: 2026-06-22 09:20:05,568 - INFO - we take 170 photos in this while loop
MAIN: 2026-06-22 09:20:05,568 - INFO - /home/pi/Desktop/images/22062026/09/19/image_22062026_09_20_04_59157.jpg
MAIN: 2026-06-22 09:20:05,568 - INFO - duration: 0.9355636879990925
MAIN: 2026-06-22 09:20:05,569 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/20'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:21: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-06-22 09:21:05,022 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:21:05,611 - INFO - taking picture
MAIN: 2026-06-22 09:21:05,611 - INFO - we take 171 photos in this while loop
MAIN: 2026-06-22 09:21:05,612 - INFO - /home/pi/Desktop/images/22062026/09/20/image_22062026_09_21_04_60034.jpg
MAIN: 2026-06-22 09:21:05,612 - INFO - duration: 0.9447182940020866
MAIN: 2026-06-22 09:21:05,612 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:22: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-06-22 09:22:05,634 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:22:05,697 - INFO - taking picture
MAIN: 2026-06-22 09:22:05,697 - INFO - we take 172 photos in this while loop
MAIN: 2026-06-22 09:22:05,697 - INFO - /home/pi/Desktop/images/22062026/09/21/image_22062026_09_22_05_60063.jpg
MAIN: 2026-06-22 09:22:05,698 - INFO - duration: 0.9668153569982678
MAIN: 2026-06-22 09:22:05,698 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:23:04,987 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:23:05,361 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:23:05,664 - INFO - taking picture
MAIN: 2026-06-22 09:23:05,664 - INFO - we take 173 photos in this while loop
MAIN: 2026-06-22 09:23:05,664 - INFO - /home/pi/Desktop/images/22062026/09/22/image_22062026_09_23_04_59986.jpg
MAIN: 2026-06-22 09:23:05,665 - INFO - duration: 0.9476550729996234
MAIN: 2026-06-22 09:23:05,665 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:24: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-06-22 09:24:05,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-06-22 09:24:05,723 - INFO - taking picture
MAIN: 2026-06-22 09:24:05,724 - INFO - we take 174 photos in this while loop
MAIN: 2026-06-22 09:24:05,724 - INFO - /home/pi/Desktop/images/22062026/09/23/image_22062026_09_24_05_60062.jpg
MAIN: 2026-06-22 09:24:05,724 - INFO - duration: 0.9444446140005311
MAIN: 2026-06-22 09:24:05,725 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/24'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:25:05,280 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:25:05,832 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:25:05,973 - INFO - taking picture
MAIN: 2026-06-22 09:25:05,974 - INFO - we take 175 photos in this while loop
MAIN: 2026-06-22 09:25:05,974 - INFO - /home/pi/Desktop/images/22062026/09/24/image_22062026_09_25_05_60258.jpg
MAIN: 2026-06-22 09:25:05,974 - INFO - duration: 0.9360600539985171
MAIN: 2026-06-22 09:25:05,974 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:26: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-06-22 09:26:06,029 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:26:06,055 - INFO - taking picture
MAIN: 2026-06-22 09:26:06,056 - INFO - we take 176 photos in this while loop
MAIN: 2026-06-22 09:26:06,056 - INFO - /home/pi/Desktop/images/22062026/09/25/image_22062026_09_26_05_60048.jpg
MAIN: 2026-06-22 09:26:06,057 - INFO - duration: 0.970066306002991
MAIN: 2026-06-22 09:26:06,057 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:27:04,982 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:27: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-06-22 09:27:06,167 - INFO - taking picture
MAIN: 2026-06-22 09:27:06,167 - INFO - we take 177 photos in this while loop
MAIN: 2026-06-22 09:27:06,167 - INFO - /home/pi/Desktop/images/22062026/09/26/image_22062026_09_27_05_60197.jpg
MAIN: 2026-06-22 09:27:06,167 - INFO - duration: 0.8837067669992393
MAIN: 2026-06-22 09:27:06,168 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:28: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-06-22 09:28:05,523 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:28:06,246 - INFO - taking picture
MAIN: 2026-06-22 09:28:06,246 - INFO - we take 178 photos in this while loop
MAIN: 2026-06-22 09:28:06,246 - INFO - /home/pi/Desktop/images/22062026/09/27/image_22062026_09_28_05_59949.jpg
MAIN: 2026-06-22 09:28:06,246 - INFO - duration: 1.013304613003129
MAIN: 2026-06-22 09:28:06,246 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/28'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:29: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-06-22 09:29:05,515 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:29:06,236 - INFO - taking picture
MAIN: 2026-06-22 09:29:06,236 - INFO - we take 179 photos in this while loop
MAIN: 2026-06-22 09:29:06,236 - INFO - /home/pi/Desktop/images/22062026/09/28/image_22062026_09_29_05_60064.jpg
MAIN: 2026-06-22 09:29:06,236 - INFO - duration: 0.9392130950000137
MAIN: 2026-06-22 09:29:06,236 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/29'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:30: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-06-22 09:30:05,841 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:30:06,345 - INFO - taking picture
MAIN: 2026-06-22 09:30:06,345 - INFO - we take 180 photos in this while loop
MAIN: 2026-06-22 09:30:06,345 - INFO - /home/pi/Desktop/images/22062026/09/29/image_22062026_09_30_05_60140.jpg
MAIN: 2026-06-22 09:30:06,346 - INFO - duration: 0.9080368260001705
MAIN: 2026-06-22 09:30:06,346 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/30'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:31:04,469 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:31:05,713 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:31:06,437 - INFO - taking picture
MAIN: 2026-06-22 09:31:06,437 - INFO - we take 181 photos in this while loop
MAIN: 2026-06-22 09:31:06,437 - INFO - /home/pi/Desktop/images/22062026/09/30/image_22062026_09_31_05_59991.jpg
MAIN: 2026-06-22 09:31:06,437 - INFO - duration: 1.0078575260013167
MAIN: 2026-06-22 09:31:06,438 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:32: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-06-22 09:32:05,899 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:32:06,565 - INFO - taking picture
MAIN: 2026-06-22 09:32:06,566 - INFO - we take 182 photos in this while loop
MAIN: 2026-06-22 09:32:06,566 - INFO - /home/pi/Desktop/images/22062026/09/31/image_22062026_09_32_05_60186.jpg
MAIN: 2026-06-22 09:32:06,566 - INFO - duration: 0.9499205319989414
MAIN: 2026-06-22 09:32:06,566 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:33:04,967 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:33:05,875 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:33:06,542 - INFO - taking picture
MAIN: 2026-06-22 09:33:06,543 - INFO - we take 183 photos in this while loop
MAIN: 2026-06-22 09:33:06,543 - INFO - /home/pi/Desktop/images/22062026/09/32/image_22062026_09_33_05_59978.jpg
MAIN: 2026-06-22 09:33:06,543 - INFO - duration: 0.9485250569996424
MAIN: 2026-06-22 09:33:06,543 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:34: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-06-22 09:34:05,851 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:34:06,555 - INFO - taking picture
MAIN: 2026-06-22 09:34:06,555 - INFO - we take 184 photos in this while loop
MAIN: 2026-06-22 09:34:06,555 - INFO - /home/pi/Desktop/images/22062026/09/33/image_22062026_09_34_05_60040.jpg
MAIN: 2026-06-22 09:34:06,555 - INFO - duration: 0.920054620000883
MAIN: 2026-06-22 09:34:06,555 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:35:05,377 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:35:05,805 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:35:06,505 - INFO - taking picture
MAIN: 2026-06-22 09:35:06,505 - INFO - we take 185 photos in this while loop
MAIN: 2026-06-22 09:35:06,505 - INFO - /home/pi/Desktop/images/22062026/09/34/image_22062026_09_35_05_59955.jpg
MAIN: 2026-06-22 09:35:06,505 - INFO - duration: 0.9145463620006922
MAIN: 2026-06-22 09:35:06,506 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/35'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:36:05,747 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:36:05,909 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:36:06,577 - INFO - taking picture
MAIN: 2026-06-22 09:36:06,578 - INFO - we take 186 photos in this while loop
MAIN: 2026-06-22 09:36:06,578 - INFO - /home/pi/Desktop/images/22062026/09/35/image_22062026_09_36_05_60034.jpg
MAIN: 2026-06-22 09:36:06,578 - INFO - duration: 0.9523564470000565
MAIN: 2026-06-22 09:36:06,578 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/36'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:37: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-06-22 09:37:05,427 - INFO - taking picture
MAIN: 2026-06-22 09:37:05,427 - INFO - we take 187 photos in this while loop
MAIN: 2026-06-22 09:37:05,427 - INFO - /home/pi/Desktop/images/22062026/09/36/image_22062026_09_37_04_58878.jpg
MAIN: 2026-06-22 09:37:05,427 - INFO - duration: 0.9232477929981542
MAIN: 2026-06-22 09:37:05,428 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/37'
MAIN: 2026-06-22 09:37: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:38:05,835 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:38:05,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-06-22 09:38:06,543 - INFO - taking picture
MAIN: 2026-06-22 09:38:06,543 - INFO - we take 188 photos in this while loop
MAIN: 2026-06-22 09:38:06,543 - INFO - /home/pi/Desktop/images/22062026/09/37/image_22062026_09_38_05_61071.jpg
MAIN: 2026-06-22 09:38:06,544 - INFO - duration: 0.9681587699997181
MAIN: 2026-06-22 09:38:06,544 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/38'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:39:04,792 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:39: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-06-22 09:39:06,415 - INFO - taking picture
MAIN: 2026-06-22 09:39:06,415 - INFO - we take 189 photos in this while loop
MAIN: 2026-06-22 09:39:06,415 - INFO - /home/pi/Desktop/images/22062026/09/38/image_22062026_09_39_05_59906.jpg
MAIN: 2026-06-22 09:39:06,415 - INFO - duration: 0.9330375300014566
MAIN: 2026-06-22 09:39:06,415 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/39'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:40:04,945 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:40:05,228 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:40:05,632 - INFO - taking picture
MAIN: 2026-06-22 09:40:05,633 - INFO - we take 190 photos in this while loop
MAIN: 2026-06-22 09:40:05,633 - INFO - /home/pi/Desktop/images/22062026/09/39/image_22062026_09_40_04_59229.jpg
MAIN: 2026-06-22 09:40:05,633 - INFO - duration: 0.9217592610002612
MAIN: 2026-06-22 09:40:05,633 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/40'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:41:04,760 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:41:05,110 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:41:05,443 - INFO - taking picture
MAIN: 2026-06-22 09:41:05,443 - INFO - we take 191 photos in this while loop
MAIN: 2026-06-22 09:41:05,443 - INFO - /home/pi/Desktop/images/22062026/09/40/image_22062026_09_41_04_59793.jpg
MAIN: 2026-06-22 09:41:05,443 - INFO - duration: 0.9381381950006471
MAIN: 2026-06-22 09:41:05,444 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:42:04,823 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:42:05,515 - INFO - taking picture
MAIN: 2026-06-22 09:42:05,516 - INFO - we take 192 photos in this while loop
MAIN: 2026-06-22 09:42:05,516 - INFO - /home/pi/Desktop/images/22062026/09/41/image_22062026_09_42_04_60057.jpg
MAIN: 2026-06-22 09:42:05,516 - INFO - duration: 0.9536646609994932
MAIN: 2026-06-22 09:42:05,516 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/42'
MAIN: 2026-06-22 09:42: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:43:04,765 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:43:05,262 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:43:05,443 - INFO - taking picture
MAIN: 2026-06-22 09:43:05,444 - INFO - we take 193 photos in this while loop
MAIN: 2026-06-22 09:43:05,444 - INFO - /home/pi/Desktop/images/22062026/09/42/image_22062026_09_43_04_59946.jpg
MAIN: 2026-06-22 09:43:05,444 - INFO - duration: 0.9355979859974468
MAIN: 2026-06-22 09:43:05,444 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:44:04,947 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:44:05,615 - INFO - taking picture
MAIN: 2026-06-22 09:44:05,615 - INFO - we take 194 photos in this while loop
MAIN: 2026-06-22 09:44:05,615 - INFO - /home/pi/Desktop/images/22062026/09/43/image_22062026_09_44_04_60182.jpg
MAIN: 2026-06-22 09:44:05,615 - INFO - duration: 0.9247205270003178
MAIN: 2026-06-22 09:44:05,615 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/44'
MAIN: 2026-06-22 09:44:05,723 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:45:04,933 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:45:05,133 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:45:05,645 - INFO - taking picture
MAIN: 2026-06-22 09:45:05,645 - INFO - we take 195 photos in this while loop
MAIN: 2026-06-22 09:45:05,645 - INFO - /home/pi/Desktop/images/22062026/09/44/image_22062026_09_45_04_60027.jpg
MAIN: 2026-06-22 09:45:05,645 - INFO - duration: 0.9270411280012922
MAIN: 2026-06-22 09:45:05,645 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:46: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

MAIN: 2026-06-22 09:46:05,065 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:46:05,541 - INFO - taking picture
MAIN: 2026-06-22 09:46:05,541 - INFO - we take 196 photos in this while loop
MAIN: 2026-06-22 09:46:05,541 - INFO - /home/pi/Desktop/images/22062026/09/45/image_22062026_09_46_04_59841.jpg
MAIN: 2026-06-22 09:46:05,541 - INFO - duration: 0.981441766001808
MAIN: 2026-06-22 09:46:05,542 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:47:04,853 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:47: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-06-22 09:47:05,532 - INFO - taking picture
MAIN: 2026-06-22 09:47:05,532 - INFO - we take 197 photos in this while loop
MAIN: 2026-06-22 09:47:05,532 - INFO - /home/pi/Desktop/images/22062026/09/46/image_22062026_09_47_04_60011.jpg
MAIN: 2026-06-22 09:47:05,533 - INFO - duration: 0.9612340759995277
MAIN: 2026-06-22 09:47:05,533 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:48:04,809 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:48:05,393 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:48:05,502 - INFO - taking picture
MAIN: 2026-06-22 09:48:05,503 - INFO - we take 198 photos in this while loop
MAIN: 2026-06-22 09:48:05,503 - INFO - /home/pi/Desktop/images/22062026/09/47/image_22062026_09_48_04_59990.jpg
MAIN: 2026-06-22 09:48:05,503 - INFO - duration: 0.9416186369999195
MAIN: 2026-06-22 09:48:05,503 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:49:05,037 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:49: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-06-22 09:49:05,759 - INFO - taking picture
MAIN: 2026-06-22 09:49:05,759 - INFO - we take 199 photos in this while loop
MAIN: 2026-06-22 09:49:05,759 - INFO - /home/pi/Desktop/images/22062026/09/48/image_22062026_09_49_05_60228.jpg
MAIN: 2026-06-22 09:49:05,759 - INFO - duration: 0.9694420239975443
MAIN: 2026-06-22 09:49:05,760 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:50: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-06-22 09:50:05,964 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:50:06,110 - INFO - taking picture
MAIN: 2026-06-22 09:50:06,110 - INFO - we take 200 photos in this while loop
MAIN: 2026-06-22 09:50:06,111 - INFO - /home/pi/Desktop/images/22062026/09/49/image_22062026_09_50_05_60393.jpg
MAIN: 2026-06-22 09:50:06,111 - INFO - duration: 0.9271868789983273
MAIN: 2026-06-22 09:50:06,111 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:51:05,414 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:51: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-06-22 09:51:06,093 - INFO - taking picture
MAIN: 2026-06-22 09:51:06,094 - INFO - we take 201 photos in this while loop
MAIN: 2026-06-22 09:51:06,094 - INFO - /home/pi/Desktop/images/22062026/09/50/image_22062026_09_51_05_59957.jpg
MAIN: 2026-06-22 09:51:06,094 - INFO - duration: 0.9533217909993255
MAIN: 2026-06-22 09:51:06,094 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:52:04,972 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:52:05,482 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:52:06,149 - INFO - taking picture
MAIN: 2026-06-22 09:52:06,149 - INFO - we take 202 photos in this while loop
MAIN: 2026-06-22 09:52:06,149 - INFO - /home/pi/Desktop/images/22062026/09/51/image_22062026_09_52_05_60128.jpg
MAIN: 2026-06-22 09:52:06,149 - INFO - duration: 0.8804336969988071
MAIN: 2026-06-22 09:52:06,149 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:53:05,002 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:53:05,338 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:53:06,004 - INFO - taking picture
MAIN: 2026-06-22 09:53:06,005 - INFO - we take 203 photos in this while loop
MAIN: 2026-06-22 09:53:06,005 - INFO - /home/pi/Desktop/images/22062026/09/52/image_22062026_09_53_05_59852.jpg
MAIN: 2026-06-22 09:53:06,005 - INFO - duration: 0.883508934002748
MAIN: 2026-06-22 09:53:06,005 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:54:05,366 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:54:05,418 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:54:06,102 - INFO - taking picture
MAIN: 2026-06-22 09:54:06,102 - INFO - we take 204 photos in this while loop
MAIN: 2026-06-22 09:54:06,102 - INFO - /home/pi/Desktop/images/22062026/09/53/image_22062026_09_54_05_59970.jpg
MAIN: 2026-06-22 09:54:06,102 - INFO - duration: 1.01045735000298
MAIN: 2026-06-22 09:54:06,103 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/54'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:55:05,342 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:55:05,413 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:55:06,074 - INFO - taking picture
MAIN: 2026-06-22 09:55:06,074 - INFO - we take 205 photos in this while loop
MAIN: 2026-06-22 09:55:06,074 - INFO - /home/pi/Desktop/images/22062026/09/54/image_22062026_09_55_05_60029.jpg
MAIN: 2026-06-22 09:55:06,075 - INFO - duration: 0.9529169950001233
MAIN: 2026-06-22 09:55:06,075 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/55'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:56:05,352 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:56:05,689 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:56:06,029 - INFO - taking picture
MAIN: 2026-06-22 09:56:06,029 - INFO - we take 206 photos in this while loop
MAIN: 2026-06-22 09:56:06,029 - INFO - /home/pi/Desktop/images/22062026/09/55/image_22062026_09_56_05_59970.jpg
MAIN: 2026-06-22 09:56:06,029 - INFO - duration: 0.9364964499982307
MAIN: 2026-06-22 09:56:06,029 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:57:05,294 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 09:57:05,349 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:57:06,019 - INFO - taking picture
MAIN: 2026-06-22 09:57:06,019 - INFO - we take 207 photos in this while loop
MAIN: 2026-06-22 09:57:06,019 - INFO - /home/pi/Desktop/images/22062026/09/56/image_22062026_09_57_05_59896.jpg
MAIN: 2026-06-22 09:57:06,020 - INFO - duration: 1.030848098002025
MAIN: 2026-06-22 09:57:06,020 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 09:58:04,803 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:58: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-06-22 09:58:06,365 - INFO - taking picture
MAIN: 2026-06-22 09:58:06,366 - INFO - we take 208 photos in this while loop
MAIN: 2026-06-22 09:58:06,366 - INFO - /home/pi/Desktop/images/22062026/09/57/image_22062026_09_58_05_60437.jpg
MAIN: 2026-06-22 09:58:06,366 - INFO - duration: 0.939740811001684
MAIN: 2026-06-22 09:58:06,366 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 09:59:04,411 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 09:59: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-06-22 09:59:06,290 - INFO - taking picture
MAIN: 2026-06-22 09:59:06,290 - INFO - we take 209 photos in this while loop
MAIN: 2026-06-22 09:59:06,290 - INFO - /home/pi/Desktop/images/22062026/09/58/image_22062026_09_59_05_59864.jpg
MAIN: 2026-06-22 09:59:06,290 - INFO - duration: 0.9997367239993764
MAIN: 2026-06-22 09:59:06,291 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/09/59'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:00: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-06-22 10:00:05,585 - INFO - taking picture
MAIN: 2026-06-22 10:00:05,586 - INFO - we take 210 photos in this while loop
MAIN: 2026-06-22 10:00:05,586 - INFO - /home/pi/Desktop/images/22062026/09/59/image_22062026_10_00_04_59365.jpg
MAIN: 2026-06-22 10:00:05,586 - INFO - duration: 0.9294839520007372
MAIN: 2026-06-22 10:00:05,586 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/00'
MAIN: 2026-06-22 10:00: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-06-22 10:01: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-06-22 10:01:05,164 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:01:05,740 - INFO - taking picture
MAIN: 2026-06-22 10:01:05,740 - INFO - we take 211 photos in this while loop
MAIN: 2026-06-22 10:01:05,740 - INFO - /home/pi/Desktop/images/22062026/10/00/image_22062026_10_01_05_60059.jpg
MAIN: 2026-06-22 10:01:05,741 - INFO - duration: 1.024895860999095
MAIN: 2026-06-22 10:01:05,741 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:02:05,307 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:02: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-06-22 10:02:06,025 - INFO - taking picture
MAIN: 2026-06-22 10:02:06,025 - INFO - we take 212 photos in this while loop
MAIN: 2026-06-22 10:02:06,025 - INFO - /home/pi/Desktop/images/22062026/10/01/image_22062026_10_02_05_60328.jpg
MAIN: 2026-06-22 10:02:06,026 - INFO - duration: 0.9817546370031778
MAIN: 2026-06-22 10:02:06,026 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/02'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:03:05,359 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:03:05,382 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:03:06,033 - INFO - taking picture
MAIN: 2026-06-22 10:03:06,033 - INFO - we take 213 photos in this while loop
MAIN: 2026-06-22 10:03:06,033 - INFO - /home/pi/Desktop/images/22062026/10/02/image_22062026_10_03_05_60030.jpg
MAIN: 2026-06-22 10:03:06,033 - INFO - duration: 0.9586636569983966
MAIN: 2026-06-22 10:03:06,034 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:04:05,367 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:04:06,033 - INFO - taking picture
MAIN: 2026-06-22 10:04:06,034 - INFO - we take 214 photos in this while loop
MAIN: 2026-06-22 10:04:06,034 - INFO - /home/pi/Desktop/images/22062026/10/03/image_22062026_10_04_05_60028.jpg
MAIN: 2026-06-22 10:04:06,034 - INFO - duration: 0.9306810720008798
MAIN: 2026-06-22 10:04:06,034 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/04'
MAIN: 2026-06-22 10:04:06,045 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:05: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-06-22 10:05:05,364 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:05:06,034 - INFO - taking picture
MAIN: 2026-06-22 10:05:06,034 - INFO - we take 215 photos in this while loop
MAIN: 2026-06-22 10:05:06,034 - INFO - /home/pi/Desktop/images/22062026/10/04/image_22062026_10_05_05_60009.jpg
MAIN: 2026-06-22 10:05:06,035 - INFO - duration: 0.9221508690025075
MAIN: 2026-06-22 10:05:06,035 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:06:05,179 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:06:05,463 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:06:06,190 - INFO - taking picture
MAIN: 2026-06-22 10:06:06,190 - INFO - we take 216 photos in this while loop
MAIN: 2026-06-22 10:06:06,190 - INFO - /home/pi/Desktop/images/22062026/10/05/image_22062026_10_06_05_60090.jpg
MAIN: 2026-06-22 10:06:06,191 - INFO - duration: 0.9875448290003987
MAIN: 2026-06-22 10:06:06,191 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:07:04,807 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:07:05,855 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:07:06,526 - INFO - taking picture
MAIN: 2026-06-22 10:07:06,527 - INFO - we take 217 photos in this while loop
MAIN: 2026-06-22 10:07:06,527 - INFO - /home/pi/Desktop/images/22062026/10/06/image_22062026_10_07_05_60391.jpg
MAIN: 2026-06-22 10:07:06,527 - INFO - duration: 0.9328360270010307
MAIN: 2026-06-22 10:07:06,527 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/07'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:08:05,591 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:08:05,834 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:08:06,555 - INFO - taking picture
MAIN: 2026-06-22 10:08:06,555 - INFO - we take 218 photos in this while loop
MAIN: 2026-06-22 10:08:06,555 - INFO - /home/pi/Desktop/images/22062026/10/07/image_22062026_10_08_05_59960.jpg
MAIN: 2026-06-22 10:08:06,555 - INFO - duration: 1.0007858030003263
MAIN: 2026-06-22 10:08:06,556 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/08'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:09: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-06-22 10:09:05,794 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:09:06,516 - INFO - taking picture
MAIN: 2026-06-22 10:09:06,517 - INFO - we take 219 photos in this while loop
MAIN: 2026-06-22 10:09:06,517 - INFO - /home/pi/Desktop/images/22062026/10/08/image_22062026_10_09_05_59991.jpg
MAIN: 2026-06-22 10:09:06,517 - INFO - duration: 0.9710989000013797
MAIN: 2026-06-22 10:09:06,517 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/09'
MAIN: 2026-06-22 10:10:04,990 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:10:05,706 - INFO - taking picture
MAIN: 2026-06-22 10:10:05,706 - INFO - we take 220 photos in this while loop
MAIN: 2026-06-22 10:10:05,706 - INFO - /home/pi/Desktop/images/22062026/10/09/image_22062026_10_10_04_59215.jpg
MAIN: 2026-06-22 10:10:05,706 - INFO - duration: 0.9446620060007263
MAIN: 2026-06-22 10:10:05,707 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/10'
MAIN: 2026-06-22 10:10:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:11:04,975 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:11:05,543 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:11:05,657 - INFO - taking picture
MAIN: 2026-06-22 10:11:05,657 - INFO - we take 221 photos in this while loop
MAIN: 2026-06-22 10:11:05,658 - INFO - /home/pi/Desktop/images/22062026/10/10/image_22062026_10_11_04_59953.jpg
MAIN: 2026-06-22 10:11:05,658 - INFO - duration: 0.9429432590004581
MAIN: 2026-06-22 10:11:05,658 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:12:04,769 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:12:04,879 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:12:05,549 - INFO - taking picture
MAIN: 2026-06-22 10:12:05,549 - INFO - we take 222 photos in this while loop
MAIN: 2026-06-22 10:12:05,549 - INFO - /home/pi/Desktop/images/22062026/10/11/image_22062026_10_12_04_59886.jpg
MAIN: 2026-06-22 10:12:05,549 - INFO - duration: 0.9476072319994273
MAIN: 2026-06-22 10:12:05,549 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:13:05,035 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:13:05,964 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:13:06,634 - INFO - taking picture
MAIN: 2026-06-22 10:13:06,634 - INFO - we take 223 photos in this while loop
MAIN: 2026-06-22 10:13:06,634 - INFO - /home/pi/Desktop/images/22062026/10/12/image_22062026_10_13_05_61090.jpg
MAIN: 2026-06-22 10:13:06,634 - INFO - duration: 0.9422433119980269
MAIN: 2026-06-22 10:13:06,635 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:14: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-06-22 10:14:05,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-06-22 10:14:06,629 - INFO - taking picture
MAIN: 2026-06-22 10:14:06,629 - INFO - we take 224 photos in this while loop
MAIN: 2026-06-22 10:14:06,629 - INFO - /home/pi/Desktop/images/22062026/10/13/image_22062026_10_14_05_60005.jpg
MAIN: 2026-06-22 10:14:06,629 - INFO - duration: 0.9318384370017156
MAIN: 2026-06-22 10:14:06,629 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:15:04,755 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:15: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-06-22 10:15:05,525 - INFO - taking picture
MAIN: 2026-06-22 10:15:05,526 - INFO - we take 225 photos in this while loop
MAIN: 2026-06-22 10:15:05,526 - INFO - /home/pi/Desktop/images/22062026/10/14/image_22062026_10_15_04_58823.jpg
MAIN: 2026-06-22 10:15:05,526 - INFO - duration: 1.0050744309992297
MAIN: 2026-06-22 10:15:05,526 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/15'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:16:04,940 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:16: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-06-22 10:16:05,609 - INFO - taking picture
MAIN: 2026-06-22 10:16:05,609 - INFO - we take 226 photos in this while loop
MAIN: 2026-06-22 10:16:05,610 - INFO - /home/pi/Desktop/images/22062026/10/15/image_22062026_10_16_04_60157.jpg
MAIN: 2026-06-22 10:16:05,610 - INFO - duration: 0.9312357950002479
MAIN: 2026-06-22 10:16:05,610 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:17:05,021 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:17:05,688 - INFO - taking picture
MAIN: 2026-06-22 10:17:05,688 - INFO - we take 227 photos in this while loop
MAIN: 2026-06-22 10:17:05,688 - INFO - /home/pi/Desktop/images/22062026/10/16/image_22062026_10_17_05_60062.jpg
MAIN: 2026-06-22 10:17:05,688 - INFO - duration: 0.946917241999472
MAIN: 2026-06-22 10:17:05,689 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/17'
MAIN: 2026-06-22 10:17:05,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:18:05,113 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:18:05,787 - INFO - taking picture
MAIN: 2026-06-22 10:18:05,787 - INFO - we take 228 photos in this while loop
MAIN: 2026-06-22 10:18:05,787 - INFO - /home/pi/Desktop/images/22062026/10/17/image_22062026_10_18_05_60110.jpg
MAIN: 2026-06-22 10:18:05,787 - INFO - duration: 0.9352396449976368
MAIN: 2026-06-22 10:18:05,788 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/18'
MAIN: 2026-06-22 10:18: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:19:04,737 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:19:04,989 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:19:05,711 - INFO - taking picture
MAIN: 2026-06-22 10:19:05,712 - INFO - we take 229 photos in this while loop
MAIN: 2026-06-22 10:19:05,712 - INFO - /home/pi/Desktop/images/22062026/10/18/image_22062026_10_19_04_59841.jpg
MAIN: 2026-06-22 10:19:05,712 - INFO - duration: 1.018761674000416
MAIN: 2026-06-22 10:19:05,712 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:20:05,107 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:20:05,418 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:20:05,855 - INFO - taking picture
MAIN: 2026-06-22 10:20:05,856 - INFO - we take 230 photos in this while loop
MAIN: 2026-06-22 10:20:05,856 - INFO - /home/pi/Desktop/images/22062026/10/19/image_22062026_10_20_05_60183.jpg
MAIN: 2026-06-22 10:20:05,856 - INFO - duration: 0.9787945579992083
MAIN: 2026-06-22 10:20:05,856 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/20'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:21:05,036 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:21:05,240 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:21:05,973 - INFO - taking picture
MAIN: 2026-06-22 10:21:05,973 - INFO - we take 231 photos in this while loop
MAIN: 2026-06-22 10:21:05,973 - INFO - /home/pi/Desktop/images/22062026/10/20/image_22062026_10_21_05_60087.jpg
MAIN: 2026-06-22 10:21:05,973 - INFO - duration: 1.00862054299796
MAIN: 2026-06-22 10:21:05,974 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:22:05,444 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:22:05,453 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:22:06,120 - INFO - taking picture
MAIN: 2026-06-22 10:22:06,120 - INFO - we take 232 photos in this while loop
MAIN: 2026-06-22 10:22:06,121 - INFO - /home/pi/Desktop/images/22062026/10/21/image_22062026_10_22_05_60211.jpg
MAIN: 2026-06-22 10:22:06,121 - INFO - duration: 0.9446271589986281
MAIN: 2026-06-22 10:22:06,121 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:23:05,405 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:23: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-06-22 10:23:06,086 - INFO - taking picture
MAIN: 2026-06-22 10:23:06,086 - INFO - we take 233 photos in this while loop
MAIN: 2026-06-22 10:23:06,087 - INFO - /home/pi/Desktop/images/22062026/10/22/image_22062026_10_23_05_59954.jpg
MAIN: 2026-06-22 10:23:06,087 - INFO - duration: 0.9557276529994851
MAIN: 2026-06-22 10:23:06,087 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/23'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:24: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-06-22 10:24:05,401 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:24:06,111 - INFO - taking picture
MAIN: 2026-06-22 10:24:06,111 - INFO - we take 234 photos in this while loop
MAIN: 2026-06-22 10:24:06,111 - INFO - /home/pi/Desktop/images/22062026/10/23/image_22062026_10_24_05_60032.jpg
MAIN: 2026-06-22 10:24:06,112 - INFO - duration: 0.9479479090005043
MAIN: 2026-06-22 10:24:06,112 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/24'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:25:04,934 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:25:05,375 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:25:06,137 - INFO - taking picture
MAIN: 2026-06-22 10:25:06,137 - INFO - we take 235 photos in this while loop
MAIN: 2026-06-22 10:25:06,138 - INFO - /home/pi/Desktop/images/22062026/10/24/image_22062026_10_25_05_59995.jpg
MAIN: 2026-06-22 10:25:06,138 - INFO - duration: 0.9786459770002693
MAIN: 2026-06-22 10:25:06,138 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:26:05,304 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:26:05,613 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:26:06,283 - INFO - taking picture
MAIN: 2026-06-22 10:26:06,283 - INFO - we take 236 photos in this while loop
MAIN: 2026-06-22 10:26:06,283 - INFO - /home/pi/Desktop/images/22062026/10/25/image_22062026_10_26_05_60215.jpg
MAIN: 2026-06-22 10:26:06,283 - INFO - duration: 0.9087968710009591
MAIN: 2026-06-22 10:26:06,284 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:27: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-06-22 10:27: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-06-22 10:27:06,349 - INFO - taking picture
MAIN: 2026-06-22 10:27:06,349 - INFO - we take 237 photos in this while loop
MAIN: 2026-06-22 10:27:06,350 - INFO - /home/pi/Desktop/images/22062026/10/26/image_22062026_10_27_05_60092.jpg
MAIN: 2026-06-22 10:27:06,350 - INFO - duration: 0.8823380689973419
MAIN: 2026-06-22 10:27:06,350 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:28:05,512 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:28:05,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-06-22 10:28:06,287 - INFO - taking picture
MAIN: 2026-06-22 10:28:06,287 - INFO - we take 238 photos in this while loop
MAIN: 2026-06-22 10:28:06,287 - INFO - /home/pi/Desktop/images/22062026/10/27/image_22062026_10_28_05_59819.jpg
MAIN: 2026-06-22 10:28:06,287 - INFO - duration: 1.0003660600013973
MAIN: 2026-06-22 10:28:06,288 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:29:05,415 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:29:05,596 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:29:06,095 - INFO - taking picture
MAIN: 2026-06-22 10:29:06,095 - INFO - we take 239 photos in this while loop
MAIN: 2026-06-22 10:29:06,095 - INFO - /home/pi/Desktop/images/22062026/10/28/image_22062026_10_29_05_59847.jpg
MAIN: 2026-06-22 10:29:06,096 - INFO - duration: 0.9606987119987025
MAIN: 2026-06-22 10:29:06,096 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:30:05,394 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:30:05,566 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:30:06,234 - INFO - taking picture
MAIN: 2026-06-22 10:30:06,234 - INFO - we take 240 photos in this while loop
MAIN: 2026-06-22 10:30:06,234 - INFO - /home/pi/Desktop/images/22062026/10/29/image_22062026_10_30_05_60147.jpg
MAIN: 2026-06-22 10:30:06,234 - INFO - duration: 0.95159045499895
MAIN: 2026-06-22 10:30:06,234 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/30'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:31: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-06-22 10:31:05,524 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:31:06,192 - INFO - taking picture
MAIN: 2026-06-22 10:31:06,192 - INFO - we take 241 photos in this while loop
MAIN: 2026-06-22 10:31:06,192 - INFO - /home/pi/Desktop/images/22062026/10/30/image_22062026_10_31_05_60019.jpg
MAIN: 2026-06-22 10:31:06,193 - INFO - duration: 0.8902628210016701
MAIN: 2026-06-22 10:31:06,193 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:32: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-06-22 10:32:05,476 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:32:06,202 - INFO - taking picture
MAIN: 2026-06-22 10:32:06,203 - INFO - we take 242 photos in this while loop
MAIN: 2026-06-22 10:32:06,203 - INFO - /home/pi/Desktop/images/22062026/10/31/image_22062026_10_32_05_59934.jpg
MAIN: 2026-06-22 10:32:06,203 - INFO - duration: 0.9665677220000362
MAIN: 2026-06-22 10:32:06,203 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:33:05,287 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:33:05,750 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:33:06,418 - INFO - taking picture
MAIN: 2026-06-22 10:33:06,418 - INFO - we take 243 photos in this while loop
MAIN: 2026-06-22 10:33:06,418 - INFO - /home/pi/Desktop/images/22062026/10/32/image_22062026_10_33_05_60288.jpg
MAIN: 2026-06-22 10:33:06,419 - INFO - duration: 0.8935773199991672
MAIN: 2026-06-22 10:33:06,419 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:34:05,431 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:34:05,723 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:34:06,452 - INFO - taking picture
MAIN: 2026-06-22 10:34:06,452 - INFO - we take 244 photos in this while loop
MAIN: 2026-06-22 10:34:06,452 - INFO - /home/pi/Desktop/images/22062026/10/33/image_22062026_10_34_05_59924.jpg
MAIN: 2026-06-22 10:34:06,453 - INFO - duration: 1.0035823580001306
MAIN: 2026-06-22 10:34:06,453 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:35:05,115 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:35:05,755 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:35:05,884 - INFO - taking picture
MAIN: 2026-06-22 10:35:05,884 - INFO - we take 245 photos in this while loop
MAIN: 2026-06-22 10:35:05,884 - INFO - /home/pi/Desktop/images/22062026/10/34/image_22062026_10_35_05_59409.jpg
MAIN: 2026-06-22 10:35:05,884 - INFO - duration: 1.0257890930006397
MAIN: 2026-06-22 10:35:05,884 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:36:05,112 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:36: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-06-22 10:36:06,074 - INFO - taking picture
MAIN: 2026-06-22 10:36:06,075 - INFO - we take 246 photos in this while loop
MAIN: 2026-06-22 10:36:06,075 - INFO - /home/pi/Desktop/images/22062026/10/35/image_22062026_10_36_05_60305.jpg
MAIN: 2026-06-22 10:36:06,075 - INFO - duration: 0.9105772309994791
MAIN: 2026-06-22 10:36:06,075 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:37: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-06-22 10:37:05,399 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:37:06,125 - INFO - taking picture
MAIN: 2026-06-22 10:37:06,125 - INFO - we take 247 photos in this while loop
MAIN: 2026-06-22 10:37:06,125 - INFO - /home/pi/Desktop/images/22062026/10/36/image_22062026_10_37_05_59998.jpg
MAIN: 2026-06-22 10:37:06,126 - INFO - duration: 0.9627260769993882
MAIN: 2026-06-22 10:37:06,126 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:38:04,801 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:38:05,418 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:38:05,472 - INFO - taking picture
MAIN: 2026-06-22 10:38:05,472 - INFO - we take 248 photos in this while loop
MAIN: 2026-06-22 10:38:05,473 - INFO - /home/pi/Desktop/images/22062026/10/37/image_22062026_10_38_04_59372.jpg
MAIN: 2026-06-22 10:38:05,473 - INFO - duration: 0.9378195050012437
MAIN: 2026-06-22 10:38:05,473 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/38'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:39:05,194 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:39:05,962 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:39:06,685 - INFO - taking picture
MAIN: 2026-06-22 10:39:06,685 - INFO - we take 249 photos in this while loop
MAIN: 2026-06-22 10:39:06,685 - INFO - /home/pi/Desktop/images/22062026/10/38/image_22062026_10_39_05_61164.jpg
MAIN: 2026-06-22 10:39:06,685 - INFO - duration: 0.9855030229991826
MAIN: 2026-06-22 10:39:06,686 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/39'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:40:05,373 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:40:05,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-06-22 10:40:06,122 - INFO - taking picture
MAIN: 2026-06-22 10:40:06,122 - INFO - we take 250 photos in this while loop
MAIN: 2026-06-22 10:40:06,122 - INFO - /home/pi/Desktop/images/22062026/10/39/image_22062026_10_40_05_59426.jpg
MAIN: 2026-06-22 10:40:06,122 - INFO - duration: 0.9957777139970858
MAIN: 2026-06-22 10:40:06,123 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/40'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:41:05,243 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:41:05,416 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:41:05,923 - INFO - taking picture
MAIN: 2026-06-22 10:41:05,923 - INFO - we take 251 photos in this while loop
MAIN: 2026-06-22 10:41:05,923 - INFO - /home/pi/Desktop/images/22062026/10/40/image_22062026_10_41_05_59859.jpg
MAIN: 2026-06-22 10:41:05,923 - INFO - duration: 0.9365358709983411
MAIN: 2026-06-22 10:41:05,923 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10: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-06-22 10:42: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-06-22 10:42:05,833 - INFO - taking picture
MAIN: 2026-06-22 10:42:05,834 - INFO - we take 252 photos in this while loop
MAIN: 2026-06-22 10:42:05,834 - INFO - /home/pi/Desktop/images/22062026/10/41/image_22062026_10_42_05_59913.jpg
MAIN: 2026-06-22 10:42:05,834 - INFO - duration: 0.9344748929979687
MAIN: 2026-06-22 10:42:05,834 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:43:04,757 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:43:04,991 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:43:05,660 - INFO - taking picture
MAIN: 2026-06-22 10:43:05,660 - INFO - we take 253 photos in this while loop
MAIN: 2026-06-22 10:43:05,660 - INFO - /home/pi/Desktop/images/22062026/10/42/image_22062026_10_43_04_59814.jpg
MAIN: 2026-06-22 10:43:05,660 - INFO - duration: 0.9461101800006873
MAIN: 2026-06-22 10:43:05,660 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:44: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-06-22 10:44:05,193 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:44:05,728 - INFO - taking picture
MAIN: 2026-06-22 10:44:05,728 - INFO - we take 254 photos in this while loop
MAIN: 2026-06-22 10:44:05,728 - INFO - /home/pi/Desktop/images/22062026/10/43/image_22062026_10_44_05_60047.jpg
MAIN: 2026-06-22 10:44:05,728 - INFO - duration: 0.9665656679972017
MAIN: 2026-06-22 10:44:05,729 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/44'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:45:04,872 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:45:05,258 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:45:05,564 - INFO - taking picture
MAIN: 2026-06-22 10:45:05,564 - INFO - we take 255 photos in this while loop
MAIN: 2026-06-22 10:45:05,564 - INFO - /home/pi/Desktop/images/22062026/10/44/image_22062026_10_45_04_59866.jpg
MAIN: 2026-06-22 10:45:05,564 - INFO - duration: 0.9358331960029318
MAIN: 2026-06-22 10:45:05,565 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:46:04,911 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:46:05,385 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:46:05,635 - INFO - taking picture
MAIN: 2026-06-22 10:46:05,636 - INFO - we take 256 photos in this while loop
MAIN: 2026-06-22 10:46:05,636 - INFO - /home/pi/Desktop/images/22062026/10/45/image_22062026_10_46_04_59993.jpg
MAIN: 2026-06-22 10:46:05,636 - INFO - duration: 1.0138429489998089
MAIN: 2026-06-22 10:46:05,636 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:47:04,771 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:47:05,206 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:47:05,452 - INFO - taking picture
MAIN: 2026-06-22 10:47:05,452 - INFO - we take 257 photos in this while loop
MAIN: 2026-06-22 10:47:05,452 - INFO - /home/pi/Desktop/images/22062026/10/46/image_22062026_10_47_04_59881.jpg
MAIN: 2026-06-22 10:47:05,452 - INFO - duration: 0.9484144330017443
MAIN: 2026-06-22 10:47:05,452 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:48:04,905 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:48: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-06-22 10:48:05,578 - INFO - taking picture
MAIN: 2026-06-22 10:48:05,578 - INFO - we take 258 photos in this while loop
MAIN: 2026-06-22 10:48:05,578 - INFO - /home/pi/Desktop/images/22062026/10/47/image_22062026_10_48_04_60128.jpg
MAIN: 2026-06-22 10:48:05,578 - INFO - duration: 0.9457707990004565
MAIN: 2026-06-22 10:48:05,579 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:49:04,833 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:49:05,533 - INFO - taking picture
MAIN: 2026-06-22 10:49:05,533 - INFO - we take 259 photos in this while loop
MAIN: 2026-06-22 10:49:05,533 - INFO - /home/pi/Desktop/images/22062026/10/48/image_22062026_10_49_04_59985.jpg
MAIN: 2026-06-22 10:49:05,533 - INFO - duration: 0.9157882010003959
MAIN: 2026-06-22 10:49:05,534 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/49'
MAIN: 2026-06-22 10:49:05,735 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:50:04,870 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:50:05,569 - INFO - taking picture
MAIN: 2026-06-22 10:50:05,569 - INFO - we take 260 photos in this while loop
MAIN: 2026-06-22 10:50:05,570 - INFO - /home/pi/Desktop/images/22062026/10/49/image_22062026_10_50_04_59989.jpg
MAIN: 2026-06-22 10:50:05,570 - INFO - duration: 0.9627107369997248
MAIN: 2026-06-22 10:50:05,570 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/50'
MAIN: 2026-06-22 10:50:05,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:51:05,010 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:51:05,935 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:51:06,603 - INFO - taking picture
MAIN: 2026-06-22 10:51:06,603 - INFO - we take 261 photos in this while loop
MAIN: 2026-06-22 10:51:06,603 - INFO - /home/pi/Desktop/images/22062026/10/50/image_22062026_10_51_05_61052.jpg
MAIN: 2026-06-22 10:51:06,603 - INFO - duration: 0.9436640040003113
MAIN: 2026-06-22 10:51:06,604 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:52:05,342 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:52: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-06-22 10:52:06,425 - INFO - taking picture
MAIN: 2026-06-22 10:52:06,425 - INFO - we take 262 photos in this while loop
MAIN: 2026-06-22 10:52:06,426 - INFO - /home/pi/Desktop/images/22062026/10/51/image_22062026_10_52_05_59868.jpg
MAIN: 2026-06-22 10:52:06,426 - INFO - duration: 0.8973475610000605
MAIN: 2026-06-22 10:52:06,426 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:53: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-06-22 10:53:05,580 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:53:06,251 - INFO - taking picture
MAIN: 2026-06-22 10:53:06,252 - INFO - we take 263 photos in this while loop
MAIN: 2026-06-22 10:53:06,252 - INFO - /home/pi/Desktop/images/22062026/10/52/image_22062026_10_53_05_59796.jpg
MAIN: 2026-06-22 10:53:06,252 - INFO - duration: 0.9274120539994328
MAIN: 2026-06-22 10:53:06,252 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:54:05,512 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:54:05,658 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:54:06,201 - INFO - taking picture
MAIN: 2026-06-22 10:54:06,201 - INFO - we take 264 photos in this while loop
MAIN: 2026-06-22 10:54:06,201 - INFO - /home/pi/Desktop/images/22062026/10/53/image_22062026_10_54_05_59922.jpg
MAIN: 2026-06-22 10:54:06,201 - INFO - duration: 0.9547616370000469
MAIN: 2026-06-22 10:54:06,202 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/54'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:55: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-06-22 10:55:05,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-06-22 10:55:06,326 - INFO - taking picture
MAIN: 2026-06-22 10:55:06,326 - INFO - we take 265 photos in this while loop
MAIN: 2026-06-22 10:55:06,326 - INFO - /home/pi/Desktop/images/22062026/10/54/image_22062026_10_55_05_60151.jpg
MAIN: 2026-06-22 10:55:06,327 - INFO - duration: 0.928829667998798
MAIN: 2026-06-22 10:55:06,327 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 10:56:05,379 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:56: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-06-22 10:56:06,334 - INFO - taking picture
MAIN: 2026-06-22 10:56:06,334 - INFO - we take 266 photos in this while loop
MAIN: 2026-06-22 10:56:06,334 - INFO - /home/pi/Desktop/images/22062026/10/55/image_22062026_10_56_05_60054.jpg
MAIN: 2026-06-22 10:56:06,335 - INFO - duration: 0.8825880590011366
MAIN: 2026-06-22 10:56:06,335 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:57: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-06-22 10:57:05,453 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 10:57:06,123 - INFO - taking picture
MAIN: 2026-06-22 10:57:06,123 - INFO - we take 267 photos in this while loop
MAIN: 2026-06-22 10:57:06,124 - INFO - /home/pi/Desktop/images/22062026/10/56/image_22062026_10_57_05_59788.jpg
MAIN: 2026-06-22 10:57:06,124 - INFO - duration: 0.88367248600116
MAIN: 2026-06-22 10:57:06,124 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:58: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-06-22 10:58:05,421 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:58:06,028 - INFO - taking picture
MAIN: 2026-06-22 10:58:06,029 - INFO - we take 268 photos in this while loop
MAIN: 2026-06-22 10:58:06,029 - INFO - /home/pi/Desktop/images/22062026/10/57/image_22062026_10_58_05_59767.jpg
MAIN: 2026-06-22 10:58:06,029 - INFO - duration: 1.0216542029993434
MAIN: 2026-06-22 10:58:06,029 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/10/58'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 10:59:05,507 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 10:59: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-06-22 10:59:06,294 - INFO - taking picture
MAIN: 2026-06-22 10:59:06,294 - INFO - we take 269 photos in this while loop
MAIN: 2026-06-22 10:59:06,295 - INFO - /home/pi/Desktop/images/22062026/10/58/image_22062026_10_59_05_60270.jpg
MAIN: 2026-06-22 10:59:06,295 - INFO - duration: 1.0169903530004376
MAIN: 2026-06-22 10:59:06,295 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:00: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-06-22 11:00:06,089 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:00:06,350 - INFO - taking picture
MAIN: 2026-06-22 11:00:06,351 - INFO - we take 270 photos in this while loop
MAIN: 2026-06-22 11:00:06,351 - INFO - /home/pi/Desktop/images/22062026/10/59/image_22062026_11_00_05_60115.jpg
MAIN: 2026-06-22 11:00:06,351 - INFO - duration: 0.9580595270017511
MAIN: 2026-06-22 11:00:06,351 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:01:05,566 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:01:05,582 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:01:06,240 - INFO - taking picture
MAIN: 2026-06-22 11:01:06,240 - INFO - we take 271 photos in this while loop
MAIN: 2026-06-22 11:01:06,240 - INFO - /home/pi/Desktop/images/22062026/11/00/image_22062026_11_01_05_59902.jpg
MAIN: 2026-06-22 11:01:06,241 - INFO - duration: 0.9453036289996817
MAIN: 2026-06-22 11:01:06,241 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:02:05,511 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:02: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 ! 
MAIN: 2026-06-22 11:02:06,260 - INFO - taking picture
MAIN: 2026-06-22 11:02:06,261 - INFO - we take 272 photos in this while loop
MAIN: 2026-06-22 11:02:06,261 - INFO - /home/pi/Desktop/images/22062026/11/01/image_22062026_11_02_05_59928.jpg
MAIN: 2026-06-22 11:02:06,261 - INFO - duration: 1.0365385719996993
MAIN: 2026-06-22 11:02:06,261 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/02'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:03:04,537 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:03: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-06-22 11:03:06,420 - INFO - taking picture
MAIN: 2026-06-22 11:03:06,421 - INFO - we take 273 photos in this while loop
MAIN: 2026-06-22 11:03:06,421 - INFO - /home/pi/Desktop/images/22062026/11/02/image_22062026_11_03_05_60266.jpg
MAIN: 2026-06-22 11:03:06,421 - INFO - duration: 0.9303134429974307
MAIN: 2026-06-22 11:03:06,421 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:04:04,906 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:04:05,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-06-22 11:04:06,560 - INFO - taking picture
MAIN: 2026-06-22 11:04:06,561 - INFO - we take 274 photos in this while loop
MAIN: 2026-06-22 11:04:06,561 - INFO - /home/pi/Desktop/images/22062026/11/03/image_22062026_11_04_05_60129.jpg
MAIN: 2026-06-22 11:04:06,561 - INFO - duration: 0.9404444159990817
MAIN: 2026-06-22 11:04:06,561 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/04'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:05: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-06-22 11:05: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-06-22 11:05:05,518 - INFO - taking picture
MAIN: 2026-06-22 11:05:05,519 - INFO - we take 275 photos in this while loop
MAIN: 2026-06-22 11:05:05,519 - INFO - /home/pi/Desktop/images/22062026/11/04/image_22062026_11_05_04_58960.jpg
MAIN: 2026-06-22 11:05:05,519 - INFO - duration: 0.9386125279997941
MAIN: 2026-06-22 11:05:05,520 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:06:04,785 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:06: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-06-22 11:06:05,462 - INFO - taking picture
MAIN: 2026-06-22 11:06:05,462 - INFO - we take 276 photos in this while loop
MAIN: 2026-06-22 11:06:05,462 - INFO - /home/pi/Desktop/images/22062026/11/05/image_22062026_11_06_04_59952.jpg
MAIN: 2026-06-22 11:06:05,462 - INFO - duration: 0.9290367610010435
MAIN: 2026-06-22 11:06:05,463 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:07: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-06-22 11:07:05,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-06-22 11:07:06,532 - INFO - taking picture
MAIN: 2026-06-22 11:07:06,532 - INFO - we take 277 photos in this while loop
MAIN: 2026-06-22 11:07:06,532 - INFO - /home/pi/Desktop/images/22062026/11/06/image_22062026_11_07_05_61060.jpg
MAIN: 2026-06-22 11:07:06,532 - INFO - duration: 0.9388546230002248
MAIN: 2026-06-22 11:07:06,533 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/07'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:08: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-06-22 11:08: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-06-22 11:08:06,472 - INFO - taking picture
MAIN: 2026-06-22 11:08:06,472 - INFO - we take 278 photos in this while loop
MAIN: 2026-06-22 11:08:06,472 - INFO - /home/pi/Desktop/images/22062026/11/07/image_22062026_11_08_05_59938.jpg
MAIN: 2026-06-22 11:08:06,472 - INFO - duration: 0.940277669000352
MAIN: 2026-06-22 11:08:06,472 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/08'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:09:04,900 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:09:05,571 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:09:06,239 - INFO - taking picture
MAIN: 2026-06-22 11:09:06,239 - INFO - we take 279 photos in this while loop
MAIN: 2026-06-22 11:09:06,239 - INFO - /home/pi/Desktop/images/22062026/11/08/image_22062026_11_09_05_59825.jpg
MAIN: 2026-06-22 11:09:06,239 - INFO - duration: 0.8820864549998078
MAIN: 2026-06-22 11:09:06,240 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/09'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:10: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-06-22 11:10:05,664 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:10:06,332 - INFO - taking picture
MAIN: 2026-06-22 11:10:06,332 - INFO - we take 280 photos in this while loop
MAIN: 2026-06-22 11:10:06,332 - INFO - /home/pi/Desktop/images/22062026/11/09/image_22062026_11_10_05_60091.jpg
MAIN: 2026-06-22 11:10:06,332 - INFO - duration: 0.8838554390022182
MAIN: 2026-06-22 11:10:06,333 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/10'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:11:05,195 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:11:05,562 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:11:06,234 - INFO - taking picture
MAIN: 2026-06-22 11:11:06,235 - INFO - we take 281 photos in this while loop
MAIN: 2026-06-22 11:11:06,235 - INFO - /home/pi/Desktop/images/22062026/11/10/image_22062026_11_11_05_59899.jpg
MAIN: 2026-06-22 11:11:06,235 - INFO - duration: 0.8870600130030653
MAIN: 2026-06-22 11:11:06,235 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:12:04,965 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:12:05,468 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:12:05,694 - INFO - taking picture
MAIN: 2026-06-22 11:12:05,694 - INFO - we take 282 photos in this while loop
MAIN: 2026-06-22 11:12:05,694 - INFO - /home/pi/Desktop/images/22062026/11/11/image_22062026_11_12_04_59328.jpg
MAIN: 2026-06-22 11:12:05,694 - INFO - duration: 1.0175920959991345
MAIN: 2026-06-22 11:12:05,695 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:13:05,070 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:13:05,262 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:13:05,803 - INFO - taking picture
MAIN: 2026-06-22 11:13:05,803 - INFO - we take 283 photos in this while loop
MAIN: 2026-06-22 11:13:05,803 - INFO - /home/pi/Desktop/images/22062026/11/12/image_22062026_11_13_05_60119.jpg
MAIN: 2026-06-22 11:13:05,803 - INFO - duration: 1.0071996279984887
MAIN: 2026-06-22 11:13:05,803 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:14:05,598 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:14:05,802 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:14:06,276 - INFO - taking picture
MAIN: 2026-06-22 11:14:06,277 - INFO - we take 284 photos in this while loop
MAIN: 2026-06-22 11:14:06,277 - INFO - /home/pi/Desktop/images/22062026/11/13/image_22062026_11_14_05_60543.jpg
MAIN: 2026-06-22 11:14:06,277 - INFO - duration: 0.9369655320006132
MAIN: 2026-06-22 11:14:06,277 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/14'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:15:05,595 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:15:05,954 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:15:06,285 - INFO - taking picture
MAIN: 2026-06-22 11:15:06,286 - INFO - we take 285 photos in this while loop
MAIN: 2026-06-22 11:15:06,286 - INFO - /home/pi/Desktop/images/22062026/11/14/image_22062026_11_15_05_60020.jpg
MAIN: 2026-06-22 11:15:06,286 - INFO - duration: 0.9261191059995326
MAIN: 2026-06-22 11:15:06,286 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:16:04,820 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:16:05,562 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:16:06,272 - INFO - taking picture
MAIN: 2026-06-22 11:16:06,272 - INFO - we take 286 photos in this while loop
MAIN: 2026-06-22 11:16:06,272 - INFO - /home/pi/Desktop/images/22062026/11/15/image_22062026_11_16_05_59988.jpg
MAIN: 2026-06-22 11:16:06,272 - INFO - duration: 0.9236934010004916
MAIN: 2026-06-22 11:16:06,272 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/16'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:17:05,218 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:17:05,474 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:17:06,142 - INFO - taking picture
MAIN: 2026-06-22 11:17:06,142 - INFO - we take 287 photos in this while loop
MAIN: 2026-06-22 11:17:06,142 - INFO - /home/pi/Desktop/images/22062026/11/16/image_22062026_11_17_05_59883.jpg
MAIN: 2026-06-22 11:17:06,142 - INFO - duration: 0.9104702660006296
MAIN: 2026-06-22 11:17:06,143 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/17'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:18:05,336 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:18:05,573 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:18:06,013 - INFO - taking picture
MAIN: 2026-06-22 11:18:06,014 - INFO - we take 288 photos in this while loop
MAIN: 2026-06-22 11:18:06,014 - INFO - /home/pi/Desktop/images/22062026/11/17/image_22062026_11_18_05_59839.jpg
MAIN: 2026-06-22 11:18:06,014 - INFO - duration: 0.9422942720011633
MAIN: 2026-06-22 11:18:06,014 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/18'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:19:05,259 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:19: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-06-22 11:19:05,957 - INFO - taking picture
MAIN: 2026-06-22 11:19:05,958 - INFO - we take 289 photos in this while loop
MAIN: 2026-06-22 11:19:05,958 - INFO - /home/pi/Desktop/images/22062026/11/18/image_22062026_11_19_05_59916.jpg
MAIN: 2026-06-22 11:19:05,958 - INFO - duration: 0.9697391869995045
MAIN: 2026-06-22 11:19:05,958 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11: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-06-22 11:20: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 ! 
MAIN: 2026-06-22 11:20:06,141 - INFO - taking picture
MAIN: 2026-06-22 11:20:06,142 - INFO - we take 290 photos in this while loop
MAIN: 2026-06-22 11:20:06,142 - INFO - /home/pi/Desktop/images/22062026/11/19/image_22062026_11_20_05_60193.jpg
MAIN: 2026-06-22 11:20:06,142 - INFO - duration: 0.960457850000239
MAIN: 2026-06-22 11:20:06,142 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:21:04,843 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:21:05,375 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:21:06,100 - INFO - taking picture
MAIN: 2026-06-22 11:21:06,101 - INFO - we take 291 photos in this while loop
MAIN: 2026-06-22 11:21:06,101 - INFO - /home/pi/Desktop/images/22062026/11/20/image_22062026_11_21_05_59957.jpg
MAIN: 2026-06-22 11:21:06,101 - INFO - duration: 0.9620939619999263
MAIN: 2026-06-22 11:21:06,101 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:22:05,177 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:22:05,554 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:22:06,223 - INFO - taking picture
MAIN: 2026-06-22 11:22:06,223 - INFO - we take 292 photos in this while loop
MAIN: 2026-06-22 11:22:06,223 - INFO - /home/pi/Desktop/images/22062026/11/21/image_22062026_11_22_05_60184.jpg
MAIN: 2026-06-22 11:22:06,223 - INFO - duration: 0.8998906670021825
MAIN: 2026-06-22 11:22:06,224 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/22'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:23:05,218 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:23:05,582 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:23:06,309 - INFO - taking picture
MAIN: 2026-06-22 11:23:06,309 - INFO - we take 293 photos in this while loop
MAIN: 2026-06-22 11:23:06,310 - INFO - /home/pi/Desktop/images/22062026/11/22/image_22062026_11_23_05_59987.jpg
MAIN: 2026-06-22 11:23:06,310 - INFO - duration: 0.9990384449993144
MAIN: 2026-06-22 11:23:06,310 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/23'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:24: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-06-22 11:24:05,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-06-22 11:24:06,396 - INFO - taking picture
MAIN: 2026-06-22 11:24:06,396 - INFO - we take 294 photos in this while loop
MAIN: 2026-06-22 11:24:06,396 - INFO - /home/pi/Desktop/images/22062026/11/23/image_22062026_11_24_05_60201.jpg
MAIN: 2026-06-22 11:24:06,396 - INFO - duration: 0.8840431060016272
MAIN: 2026-06-22 11:24:06,397 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/24'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:25:05,021 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:25:05,721 - INFO - taking picture
MAIN: 2026-06-22 11:25:05,721 - INFO - we take 295 photos in this while loop
MAIN: 2026-06-22 11:25:05,721 - INFO - /home/pi/Desktop/images/22062026/11/24/image_22062026_11_25_05_59271.jpg
MAIN: 2026-06-22 11:25:05,722 - INFO - duration: 0.9374929449986666
MAIN: 2026-06-22 11:25:05,722 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/25'
MAIN: 2026-06-22 11:25:05,847 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:26: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-06-22 11:26: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 ! 
MAIN: 2026-06-22 11:26:05,771 - INFO - taking picture
MAIN: 2026-06-22 11:26:05,772 - INFO - we take 296 photos in this while loop
MAIN: 2026-06-22 11:26:05,772 - INFO - /home/pi/Desktop/images/22062026/11/25/image_22062026_11_26_05_60045.jpg
MAIN: 2026-06-22 11:26:05,772 - INFO - duration: 0.9425915450010507
MAIN: 2026-06-22 11:26:05,773 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:27:04,978 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:27:05,659 - INFO - taking picture
MAIN: 2026-06-22 11:27:05,660 - INFO - we take 297 photos in this while loop
MAIN: 2026-06-22 11:27:05,660 - INFO - /home/pi/Desktop/images/22062026/11/26/image_22062026_11_27_04_59907.jpg
MAIN: 2026-06-22 11:27:05,660 - INFO - duration: 0.922359480002342
MAIN: 2026-06-22 11:27:05,660 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/27'
MAIN: 2026-06-22 11:27: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:28: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-06-22 11:28:05,987 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:28:06,654 - INFO - taking picture
MAIN: 2026-06-22 11:28:06,654 - INFO - we take 298 photos in this while loop
MAIN: 2026-06-22 11:28:06,654 - INFO - /home/pi/Desktop/images/22062026/11/27/image_22062026_11_28_05_60984.jpg
MAIN: 2026-06-22 11:28:06,654 - INFO - duration: 0.9324412970017875
MAIN: 2026-06-22 11:28:06,655 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:29: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-06-22 11:29:05,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-06-22 11:29:06,456 - INFO - taking picture
MAIN: 2026-06-22 11:29:06,456 - INFO - we take 299 photos in this while loop
MAIN: 2026-06-22 11:29:06,456 - INFO - /home/pi/Desktop/images/22062026/11/28/image_22062026_11_29_05_59849.jpg
MAIN: 2026-06-22 11:29:06,457 - INFO - duration: 0.8847885209979722
MAIN: 2026-06-22 11:29:06,457 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/29'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:30:05,529 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:30:06,002 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:30:06,244 - INFO - taking picture
MAIN: 2026-06-22 11:30:06,245 - INFO - we take 300 photos in this while loop
MAIN: 2026-06-22 11:30:06,245 - INFO - /home/pi/Desktop/images/22062026/11/29/image_22062026_11_30_05_59714.jpg
MAIN: 2026-06-22 11:30:06,245 - INFO - duration: 0.9588257039977179
MAIN: 2026-06-22 11:30:06,245 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/30'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:31:05,233 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:31:05,509 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:31:05,913 - INFO - taking picture
MAIN: 2026-06-22 11:31:05,913 - INFO - we take 301 photos in this while loop
MAIN: 2026-06-22 11:31:05,913 - INFO - /home/pi/Desktop/images/22062026/11/30/image_22062026_11_31_05_59674.jpg
MAIN: 2026-06-22 11:31:05,913 - INFO - duration: 0.9532320280013664
MAIN: 2026-06-22 11:31:05,914 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:32:05,155 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:32:05,824 - INFO - taking picture
MAIN: 2026-06-22 11:32:05,824 - INFO - we take 302 photos in this while loop
MAIN: 2026-06-22 11:32:05,825 - INFO - /home/pi/Desktop/images/22062026/11/31/image_22062026_11_32_05_59938.jpg
MAIN: 2026-06-22 11:32:05,825 - INFO - duration: 0.9258611929981271
MAIN: 2026-06-22 11:32:05,825 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/32'
MAIN: 2026-06-22 11:32:05,906 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:33:04,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-06-22 11:33: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-06-22 11:33:05,639 - INFO - taking picture
MAIN: 2026-06-22 11:33:05,640 - INFO - we take 303 photos in this while loop
MAIN: 2026-06-22 11:33:05,640 - INFO - /home/pi/Desktop/images/22062026/11/32/image_22062026_11_33_04_59826.jpg
MAIN: 2026-06-22 11:33:05,640 - INFO - duration: 0.9143563190009445
MAIN: 2026-06-22 11:33:05,640 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:34:04,844 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:34:05,131 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:34:05,525 - INFO - taking picture
MAIN: 2026-06-22 11:34:05,526 - INFO - we take 304 photos in this while loop
MAIN: 2026-06-22 11:34:05,526 - INFO - /home/pi/Desktop/images/22062026/11/33/image_22062026_11_34_04_59841.jpg
MAIN: 2026-06-22 11:34:05,526 - INFO - duration: 0.9588033380023262
MAIN: 2026-06-22 11:34:05,526 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/34'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:35: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-06-22 11:35:05,508 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:35:05,523 - INFO - taking picture
MAIN: 2026-06-22 11:35:05,523 - INFO - we take 305 photos in this while loop
MAIN: 2026-06-22 11:35:05,524 - INFO - /home/pi/Desktop/images/22062026/11/34/image_22062026_11_35_04_60014.jpg
MAIN: 2026-06-22 11:35:05,524 - INFO - duration: 0.9416955750020861
MAIN: 2026-06-22 11:35:05,525 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/35'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:36:04,819 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:36:05,488 - INFO - taking picture
MAIN: 2026-06-22 11:36:05,488 - INFO - we take 306 photos in this while loop
MAIN: 2026-06-22 11:36:05,488 - INFO - /home/pi/Desktop/images/22062026/11/35/image_22062026_11_36_04_59992.jpg
MAIN: 2026-06-22 11:36:05,488 - INFO - duration: 0.9138011970026128
MAIN: 2026-06-22 11:36:05,488 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/36'
MAIN: 2026-06-22 11:36:05,725 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:37:05,704 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:37:05,875 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:37:06,543 - INFO - taking picture
MAIN: 2026-06-22 11:37:06,543 - INFO - we take 307 photos in this while loop
MAIN: 2026-06-22 11:37:06,543 - INFO - /home/pi/Desktop/images/22062026/11/36/image_22062026_11_37_05_61017.jpg
MAIN: 2026-06-22 11:37:06,543 - INFO - duration: 0.9511827729984361
MAIN: 2026-06-22 11:37:06,544 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:38:04,980 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:38: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-06-22 11:38:05,656 - INFO - taking picture
MAIN: 2026-06-22 11:38:05,657 - INFO - we take 308 photos in this while loop
MAIN: 2026-06-22 11:38:05,657 - INFO - /home/pi/Desktop/images/22062026/11/37/image_22062026_11_38_04_59120.jpg
MAIN: 2026-06-22 11:38:05,657 - INFO - duration: 0.9443256919985288
MAIN: 2026-06-22 11:38:05,657 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/38'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:39:04,807 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:39:04,961 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:39:05,480 - INFO - taking picture
MAIN: 2026-06-22 11:39:05,481 - INFO - we take 309 photos in this while loop
MAIN: 2026-06-22 11:39:05,481 - INFO - /home/pi/Desktop/images/22062026/11/38/image_22062026_11_39_04_59824.jpg
MAIN: 2026-06-22 11:39:05,481 - INFO - duration: 0.9442526529965107
MAIN: 2026-06-22 11:39:05,481 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/39'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:40:04,972 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:40: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-06-22 11:40:05,734 - INFO - taking picture
MAIN: 2026-06-22 11:40:05,734 - INFO - we take 310 photos in this while loop
MAIN: 2026-06-22 11:40:05,734 - INFO - /home/pi/Desktop/images/22062026/11/39/image_22062026_11_40_04_60198.jpg
MAIN: 2026-06-22 11:40:05,734 - INFO - duration: 0.9992994230015029
MAIN: 2026-06-22 11:40:05,734 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:41: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-06-22 11:41:05,439 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:41:05,780 - INFO - taking picture
MAIN: 2026-06-22 11:41:05,780 - INFO - we take 311 photos in this while loop
MAIN: 2026-06-22 11:41:05,780 - INFO - /home/pi/Desktop/images/22062026/11/40/image_22062026_11_41_05_60078.jpg
MAIN: 2026-06-22 11:41:05,780 - INFO - duration: 0.9671552510008041
MAIN: 2026-06-22 11:41:05,780 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:42: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-06-22 11:42:05,742 - INFO - taking picture
MAIN: 2026-06-22 11:42:05,743 - INFO - we take 312 photos in this while loop
MAIN: 2026-06-22 11:42:05,743 - INFO - /home/pi/Desktop/images/22062026/11/41/image_22062026_11_42_05_60003.jpg
MAIN: 2026-06-22 11:42:05,743 - INFO - duration: 0.9261609189998126
MAIN: 2026-06-22 11:42:05,743 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/42'
MAIN: 2026-06-22 11:42:05,876 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:43: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-06-22 11:43: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-06-22 11:43:06,039 - INFO - taking picture
MAIN: 2026-06-22 11:43:06,040 - INFO - we take 313 photos in this while loop
MAIN: 2026-06-22 11:43:06,040 - INFO - /home/pi/Desktop/images/22062026/11/42/image_22062026_11_43_05_60292.jpg
MAIN: 2026-06-22 11:43:06,040 - INFO - duration: 0.930681393998384
MAIN: 2026-06-22 11:43:06,040 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:44: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-06-22 11:44:05,233 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:44:05,901 - INFO - taking picture
MAIN: 2026-06-22 11:44:05,901 - INFO - we take 314 photos in this while loop
MAIN: 2026-06-22 11:44:05,901 - INFO - /home/pi/Desktop/images/22062026/11/43/image_22062026_11_44_05_59850.jpg
MAIN: 2026-06-22 11:44:05,901 - INFO - duration: 0.9414453059980588
MAIN: 2026-06-22 11:44:05,902 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:45:05,104 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:45:05,219 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:45:05,824 - INFO - taking picture
MAIN: 2026-06-22 11:45:05,825 - INFO - we take 315 photos in this while loop
MAIN: 2026-06-22 11:45:05,825 - INFO - /home/pi/Desktop/images/22062026/11/44/image_22062026_11_45_05_59918.jpg
MAIN: 2026-06-22 11:45:05,825 - INFO - duration: 0.9460392799992405
MAIN: 2026-06-22 11:45:05,825 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:46: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-06-22 11:46:05,392 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:46:05,838 - INFO - taking picture
MAIN: 2026-06-22 11:46:05,838 - INFO - we take 316 photos in this while loop
MAIN: 2026-06-22 11:46:05,838 - INFO - /home/pi/Desktop/images/22062026/11/45/image_22062026_11_46_05_60016.jpg
MAIN: 2026-06-22 11:46:05,838 - INFO - duration: 0.9424280300008832
MAIN: 2026-06-22 11:46:05,838 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:47:05,275 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:47:05,461 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:47:05,961 - INFO - taking picture
MAIN: 2026-06-22 11:47:05,962 - INFO - we take 317 photos in this while loop
MAIN: 2026-06-22 11:47:05,962 - INFO - /home/pi/Desktop/images/22062026/11/46/image_22062026_11_47_05_60111.jpg
MAIN: 2026-06-22 11:47:05,962 - INFO - duration: 0.9544281470007263
MAIN: 2026-06-22 11:47:05,962 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:48:05,212 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:48:05,777 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:48:05,938 - INFO - taking picture
MAIN: 2026-06-22 11:48:05,939 - INFO - we take 318 photos in this while loop
MAIN: 2026-06-22 11:48:05,939 - INFO - /home/pi/Desktop/images/22062026/11/47/image_22062026_11_48_05_59955.jpg
MAIN: 2026-06-22 11:48:05,939 - INFO - duration: 0.9754713309994258
MAIN: 2026-06-22 11:48:05,939 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:49:05,146 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:49:05,777 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:49:05,817 - INFO - taking picture
MAIN: 2026-06-22 11:49:05,818 - INFO - we take 319 photos in this while loop
MAIN: 2026-06-22 11:49:05,818 - INFO - /home/pi/Desktop/images/22062026/11/48/image_22062026_11_49_05_59925.jpg
MAIN: 2026-06-22 11:49:05,818 - INFO - duration: 0.929638398996758
MAIN: 2026-06-22 11:49:05,819 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:50: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-06-22 11:50: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-06-22 11:50:05,635 - INFO - taking picture
MAIN: 2026-06-22 11:50:05,635 - INFO - we take 320 photos in this while loop
MAIN: 2026-06-22 11:50:05,635 - INFO - /home/pi/Desktop/images/22062026/11/49/image_22062026_11_50_04_59851.jpg
MAIN: 2026-06-22 11:50:05,636 - INFO - duration: 0.8952917590031575
MAIN: 2026-06-22 11:50:05,636 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/50'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:51: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-06-22 11:51:05,020 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:51:05,624 - INFO - taking picture
MAIN: 2026-06-22 11:51:05,625 - INFO - we take 321 photos in this while loop
MAIN: 2026-06-22 11:51:05,625 - INFO - /home/pi/Desktop/images/22062026/11/50/image_22062026_11_51_04_59907.jpg
MAIN: 2026-06-22 11:51:05,625 - INFO - duration: 0.9767663839993475
MAIN: 2026-06-22 11:51:05,625 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:52:05,055 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:52:05,320 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:52:05,765 - INFO - taking picture
MAIN: 2026-06-22 11:52:05,766 - INFO - we take 322 photos in this while loop
MAIN: 2026-06-22 11:52:05,766 - INFO - /home/pi/Desktop/images/22062026/11/51/image_22062026_11_52_05_60114.jpg
MAIN: 2026-06-22 11:52:05,766 - INFO - duration: 1.0031970720010577
MAIN: 2026-06-22 11:52:05,766 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/52'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:53:04,911 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:53:05,095 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:53:05,586 - INFO - taking picture
MAIN: 2026-06-22 11:53:05,586 - INFO - we take 323 photos in this while loop
MAIN: 2026-06-22 11:53:05,586 - INFO - /home/pi/Desktop/images/22062026/11/52/image_22062026_11_53_04_59882.jpg
MAIN: 2026-06-22 11:53:05,586 - INFO - duration: 0.9411450580009841
MAIN: 2026-06-22 11:53:05,587 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11: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-06-22 11:54:05,553 - INFO - taking picture
MAIN: 2026-06-22 11:54:05,554 - INFO - we take 324 photos in this while loop
MAIN: 2026-06-22 11:54:05,554 - INFO - /home/pi/Desktop/images/22062026/11/53/image_22062026_11_54_04_59966.jpg
MAIN: 2026-06-22 11:54:05,554 - INFO - duration: 0.9423085419985
MAIN: 2026-06-22 11:54:05,554 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/54'
MAIN: 2026-06-22 11:54: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:55:05,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-06-22 11:55:06,147 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:55:06,642 - INFO - taking picture
MAIN: 2026-06-22 11:55:06,642 - INFO - we take 325 photos in this while loop
MAIN: 2026-06-22 11:55:06,642 - INFO - /home/pi/Desktop/images/22062026/11/54/image_22062026_11_55_05_61080.jpg
MAIN: 2026-06-22 11:55:06,642 - INFO - duration: 0.9502707780011406
MAIN: 2026-06-22 11:55:06,643 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 11:56:04,878 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:56:05,739 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:56:06,406 - INFO - taking picture
MAIN: 2026-06-22 11:56:06,407 - INFO - we take 326 photos in this while loop
MAIN: 2026-06-22 11:56:06,407 - INFO - /home/pi/Desktop/images/22062026/11/55/image_22062026_11_56_05_59790.jpg
MAIN: 2026-06-22 11:56:06,407 - INFO - duration: 0.9238121329981368
MAIN: 2026-06-22 11:56:06,407 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:57:05,128 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:57:05,510 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:57:06,178 - INFO - taking picture
MAIN: 2026-06-22 11:57:06,178 - INFO - we take 327 photos in this while loop
MAIN: 2026-06-22 11:57:06,178 - INFO - /home/pi/Desktop/images/22062026/11/56/image_22062026_11_57_05_59812.jpg
MAIN: 2026-06-22 11:57:06,178 - INFO - duration: 0.8830389390022901
MAIN: 2026-06-22 11:57:06,179 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:58:05,420 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:58:05,438 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 11:58:06,097 - INFO - taking picture
MAIN: 2026-06-22 11:58:06,097 - INFO - we take 328 photos in this while loop
MAIN: 2026-06-22 11:58:06,097 - INFO - /home/pi/Desktop/images/22062026/11/57/image_22062026_11_58_05_59846.jpg
MAIN: 2026-06-22 11:58:06,097 - INFO - duration: 0.956052006000391
MAIN: 2026-06-22 11:58:06,098 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/58'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 11:59: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-06-22 11:59:05,467 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 11:59:06,136 - INFO - taking picture
MAIN: 2026-06-22 11:59:06,136 - INFO - we take 329 photos in this while loop
MAIN: 2026-06-22 11:59:06,137 - INFO - /home/pi/Desktop/images/22062026/11/58/image_22062026_11_59_05_60044.jpg
MAIN: 2026-06-22 11:59:06,137 - INFO - duration: 0.9509363920005853
MAIN: 2026-06-22 11:59:06,137 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/11/59'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:00:05,488 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:00:05,492 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:00:06,165 - INFO - taking picture
MAIN: 2026-06-22 12:00:06,166 - INFO - we take 330 photos in this while loop
MAIN: 2026-06-22 12:00:06,166 - INFO - /home/pi/Desktop/images/22062026/11/59/image_22062026_12_00_05_60085.jpg
MAIN: 2026-06-22 12:00:06,166 - INFO - duration: 0.8947478689988202
MAIN: 2026-06-22 12:00:06,166 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/00'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:01:05,363 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:01:05,398 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:01:06,040 - INFO - taking picture
MAIN: 2026-06-22 12:01:06,040 - INFO - we take 331 photos in this while loop
MAIN: 2026-06-22 12:01:06,040 - INFO - /home/pi/Desktop/images/22062026/12/00/image_22062026_12_01_05_59845.jpg
MAIN: 2026-06-22 12:01:06,040 - INFO - duration: 0.9232016229980218
MAIN: 2026-06-22 12:01:06,041 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:02:05,289 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:02: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-06-22 12:02:05,967 - INFO - taking picture
MAIN: 2026-06-22 12:02:05,967 - INFO - we take 332 photos in this while loop
MAIN: 2026-06-22 12:02:05,968 - INFO - /home/pi/Desktop/images/22062026/12/01/image_22062026_12_02_05_59904.jpg
MAIN: 2026-06-22 12:02:05,968 - INFO - duration: 0.9457493459995021
MAIN: 2026-06-22 12:02:05,968 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/02'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:03: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-06-22 12:03:05,165 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:03:05,833 - INFO - taking picture
MAIN: 2026-06-22 12:03:05,834 - INFO - we take 333 photos in this while loop
MAIN: 2026-06-22 12:03:05,834 - INFO - /home/pi/Desktop/images/22062026/12/02/image_22062026_12_03_05_59871.jpg
MAIN: 2026-06-22 12:03:05,834 - INFO - duration: 0.9402682879990607
MAIN: 2026-06-22 12:03:05,834 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:04:05,089 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:04: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-06-22 12:04:05,816 - INFO - taking picture
MAIN: 2026-06-22 12:04:05,817 - INFO - we take 334 photos in this while loop
MAIN: 2026-06-22 12:04:05,817 - INFO - /home/pi/Desktop/images/22062026/12/03/image_22062026_12_04_05_59926.jpg
MAIN: 2026-06-22 12:04:05,817 - INFO - duration: 0.9970722439975361
MAIN: 2026-06-22 12:04:05,817 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/04'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:05: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-06-22 12:05:05,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-06-22 12:05:05,924 - INFO - taking picture
MAIN: 2026-06-22 12:05:05,924 - INFO - we take 335 photos in this while loop
MAIN: 2026-06-22 12:05:05,924 - INFO - /home/pi/Desktop/images/22062026/12/04/image_22062026_12_05_05_60196.jpg
MAIN: 2026-06-22 12:05:05,924 - INFO - duration: 0.9073153429999365
MAIN: 2026-06-22 12:05:05,925 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:06:05,175 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:06: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-06-22 12:06:05,870 - INFO - taking picture
MAIN: 2026-06-22 12:06:05,870 - INFO - we take 336 photos in this while loop
MAIN: 2026-06-22 12:06:05,870 - INFO - /home/pi/Desktop/images/22062026/12/05/image_22062026_12_06_05_59901.jpg
MAIN: 2026-06-22 12:06:05,870 - INFO - duration: 0.9518332560000999
MAIN: 2026-06-22 12:06:05,871 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:07:05,059 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:07:05,461 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:07:05,737 - INFO - taking picture
MAIN: 2026-06-22 12:07:05,737 - INFO - we take 337 photos in this while loop
MAIN: 2026-06-22 12:07:05,738 - INFO - /home/pi/Desktop/images/22062026/12/06/image_22062026_12_07_05_59876.jpg
MAIN: 2026-06-22 12:07:05,738 - INFO - duration: 0.9422396779991686
MAIN: 2026-06-22 12:07:05,738 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/07'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:08:05,072 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:08:05,818 - INFO - taking picture
MAIN: 2026-06-22 12:08:05,819 - INFO - we take 338 photos in this while loop
MAIN: 2026-06-22 12:08:05,819 - INFO - /home/pi/Desktop/images/22062026/12/07/image_22062026_12_08_05_60024.jpg
MAIN: 2026-06-22 12:08:05,819 - INFO - duration: 0.9988617680028256
MAIN: 2026-06-22 12:08:05,819 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/08'
MAIN: 2026-06-22 12:08:05,821 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:09:04,791 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:09:05,291 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:09:06,054 - INFO - taking picture
MAIN: 2026-06-22 12:09:06,055 - INFO - we take 339 photos in this while loop
MAIN: 2026-06-22 12:09:06,055 - INFO - /home/pi/Desktop/images/22062026/12/08/image_22062026_12_09_05_60254.jpg
MAIN: 2026-06-22 12:09:06,055 - INFO - duration: 0.9807234219988459
MAIN: 2026-06-22 12:09:06,055 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/09'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:10: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-06-22 12:10:05,742 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:10:06,413 - INFO - taking picture
MAIN: 2026-06-22 12:10:06,413 - INFO - we take 340 photos in this while loop
MAIN: 2026-06-22 12:10:06,413 - INFO - /home/pi/Desktop/images/22062026/12/09/image_22062026_12_10_05_60443.jpg
MAIN: 2026-06-22 12:10:06,413 - INFO - duration: 0.8955413389994646
MAIN: 2026-06-22 12:10:06,413 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/10'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:11: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-06-22 12:11:05,524 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:11:06,192 - INFO - taking picture
MAIN: 2026-06-22 12:11:06,193 - INFO - we take 341 photos in this while loop
MAIN: 2026-06-22 12:11:06,193 - INFO - /home/pi/Desktop/images/22062026/12/10/image_22062026_12_11_05_59737.jpg
MAIN: 2026-06-22 12:11:06,193 - INFO - duration: 0.9380109459998494
MAIN: 2026-06-22 12:11:06,193 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:12: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-06-22 12:12:05,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-06-22 12:12:06,206 - INFO - taking picture
MAIN: 2026-06-22 12:12:06,206 - INFO - we take 342 photos in this while loop
MAIN: 2026-06-22 12:12:06,206 - INFO - /home/pi/Desktop/images/22062026/12/11/image_22062026_12_12_05_59922.jpg
MAIN: 2026-06-22 12:12:06,207 - INFO - duration: 1.0296858760011673
MAIN: 2026-06-22 12:12:06,207 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:13:04,841 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:13:05,792 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:13:06,515 - INFO - taking picture
MAIN: 2026-06-22 12:13:06,515 - INFO - we take 343 photos in this while loop
MAIN: 2026-06-22 12:13:06,515 - INFO - /home/pi/Desktop/images/22062026/12/12/image_22062026_12_13_05_60341.jpg
MAIN: 2026-06-22 12:13:06,515 - INFO - duration: 0.996849660998123
MAIN: 2026-06-22 12:13:06,516 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:14:05,250 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:14:05,977 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:14:06,700 - INFO - taking picture
MAIN: 2026-06-22 12:14:06,701 - INFO - we take 344 photos in this while loop
MAIN: 2026-06-22 12:14:06,701 - INFO - /home/pi/Desktop/images/22062026/12/13/image_22062026_12_14_05_60218.jpg
MAIN: 2026-06-22 12:14:06,701 - INFO - duration: 0.9641741349987569
MAIN: 2026-06-22 12:14:06,702 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/14'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:15:05,060 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:15:05,728 - INFO - taking picture
MAIN: 2026-06-22 12:15:05,728 - INFO - we take 345 photos in this while loop
MAIN: 2026-06-22 12:15:05,728 - INFO - /home/pi/Desktop/images/22062026/12/14/image_22062026_12_15_05_59087.jpg
MAIN: 2026-06-22 12:15:05,728 - INFO - duration: 0.9037896039990301
MAIN: 2026-06-22 12:15:05,729 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/15'
MAIN: 2026-06-22 12:15:05,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:16: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-06-22 12:16: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-06-22 12:16:05,842 - INFO - taking picture
MAIN: 2026-06-22 12:16:05,842 - INFO - we take 346 photos in this while loop
MAIN: 2026-06-22 12:16:05,842 - INFO - /home/pi/Desktop/images/22062026/12/15/image_22062026_12_16_05_59999.jpg
MAIN: 2026-06-22 12:16:05,842 - INFO - duration: 1.017818635002186
MAIN: 2026-06-22 12:16:05,842 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/16'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:17:05,076 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:17: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-06-22 12:17:05,756 - INFO - taking picture
MAIN: 2026-06-22 12:17:05,756 - INFO - we take 347 photos in this while loop
MAIN: 2026-06-22 12:17:05,757 - INFO - /home/pi/Desktop/images/22062026/12/16/image_22062026_12_17_05_59994.jpg
MAIN: 2026-06-22 12:17:05,757 - INFO - duration: 0.9382608630003233
MAIN: 2026-06-22 12:17:05,757 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 12:18:04,968 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:18:05,634 - INFO - taking picture
MAIN: 2026-06-22 12:18:05,635 - INFO - we take 348 photos in this while loop
MAIN: 2026-06-22 12:18:05,635 - INFO - /home/pi/Desktop/images/22062026/12/17/image_22062026_12_18_04_59889.jpg
MAIN: 2026-06-22 12:18:05,635 - INFO - duration: 0.9271502599985979
MAIN: 2026-06-22 12:18:05,635 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/18'
MAIN: 2026-06-22 12:18:05,676 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:19:04,602 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:19:05,961 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:19:06,628 - INFO - taking picture
MAIN: 2026-06-22 12:19:06,628 - INFO - we take 349 photos in this while loop
MAIN: 2026-06-22 12:19:06,628 - INFO - /home/pi/Desktop/images/22062026/12/18/image_22062026_12_19_05_60990.jpg
MAIN: 2026-06-22 12:19:06,628 - INFO - duration: 0.9298486429979675
MAIN: 2026-06-22 12:19:06,629 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:20:05,223 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:20:05,943 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:20:06,610 - INFO - taking picture
MAIN: 2026-06-22 12:20:06,610 - INFO - we take 350 photos in this while loop
MAIN: 2026-06-22 12:20:06,610 - INFO - /home/pi/Desktop/images/22062026/12/19/image_22062026_12_20_05_59985.jpg
MAIN: 2026-06-22 12:20:06,610 - INFO - duration: 0.9258472640030959
MAIN: 2026-06-22 12:20:06,610 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/20'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:21: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-06-22 12:21: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-06-22 12:21:06,404 - INFO - taking picture
MAIN: 2026-06-22 12:21:06,405 - INFO - we take 351 photos in this while loop
MAIN: 2026-06-22 12:21:06,405 - INFO - /home/pi/Desktop/images/22062026/12/20/image_22062026_12_21_05_59803.jpg
MAIN: 2026-06-22 12:21:06,405 - INFO - duration: 0.9169623390007473
MAIN: 2026-06-22 12:21:06,405 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:22:05,393 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:22:05,641 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:22:06,307 - INFO - taking picture
MAIN: 2026-06-22 12:22:06,307 - INFO - we take 352 photos in this while loop
MAIN: 2026-06-22 12:22:06,308 - INFO - /home/pi/Desktop/images/22062026/12/21/image_22062026_12_22_05_59883.jpg
MAIN: 2026-06-22 12:22:06,308 - INFO - duration: 0.9363067560007039
MAIN: 2026-06-22 12:22:06,308 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/22'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:23: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-06-22 12:23:05,674 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:23:06,342 - INFO - taking picture
MAIN: 2026-06-22 12:23:06,342 - INFO - we take 353 photos in this while loop
MAIN: 2026-06-22 12:23:06,342 - INFO - /home/pi/Desktop/images/22062026/12/22/image_22062026_12_23_05_60085.jpg
MAIN: 2026-06-22 12:23:06,342 - INFO - duration: 0.8851940109998395
MAIN: 2026-06-22 12:23:06,342 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/23'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:24: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-06-22 12:24:05,550 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:24:06,278 - INFO - taking picture
MAIN: 2026-06-22 12:24:06,278 - INFO - we take 354 photos in this while loop
MAIN: 2026-06-22 12:24:06,278 - INFO - /home/pi/Desktop/images/22062026/12/23/image_22062026_12_24_05_59778.jpg
MAIN: 2026-06-22 12:24:06,279 - INFO - duration: 1.0431372230013949
MAIN: 2026-06-22 12:24:06,279 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 12:25:05,567 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:25:05,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-06-22 12:25:06,256 - INFO - taking picture
MAIN: 2026-06-22 12:25:06,256 - INFO - we take 355 photos in this while loop
MAIN: 2026-06-22 12:25:06,257 - INFO - /home/pi/Desktop/images/22062026/12/24/image_22062026_12_25_05_60102.jpg
MAIN: 2026-06-22 12:25:06,257 - INFO - duration: 0.9185373170003004
MAIN: 2026-06-22 12:25:06,257 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 12:26:04,861 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:26:05,740 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:26:06,427 - INFO - taking picture
MAIN: 2026-06-22 12:26:06,428 - INFO - we take 356 photos in this while loop
MAIN: 2026-06-22 12:26:06,428 - INFO - /home/pi/Desktop/images/22062026/12/25/image_22062026_12_26_05_60124.jpg
MAIN: 2026-06-22 12:26:06,428 - INFO - duration: 0.9649317190014699
MAIN: 2026-06-22 12:26:06,428 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:27: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-06-22 12:27: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-06-22 12:27:06,368 - INFO - taking picture
MAIN: 2026-06-22 12:27:06,369 - INFO - we take 357 photos in this while loop
MAIN: 2026-06-22 12:27:06,369 - INFO - /home/pi/Desktop/images/22062026/12/26/image_22062026_12_27_05_59950.jpg
MAIN: 2026-06-22 12:27:06,369 - INFO - duration: 0.9557038239981921
MAIN: 2026-06-22 12:27:06,369 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:28: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-06-22 12:28:05,861 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:28:06,628 - INFO - taking picture
MAIN: 2026-06-22 12:28:06,629 - INFO - we take 358 photos in this while loop
MAIN: 2026-06-22 12:28:06,629 - INFO - /home/pi/Desktop/images/22062026/12/27/image_22062026_12_28_05_60234.jpg
MAIN: 2026-06-22 12:28:06,629 - INFO - duration: 0.9812411269995209
MAIN: 2026-06-22 12:28:06,629 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/28'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:29: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-06-22 12:29:05,243 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:29:05,564 - INFO - taking picture
MAIN: 2026-06-22 12:29:05,564 - INFO - we take 359 photos in this while loop
MAIN: 2026-06-22 12:29:05,564 - INFO - /home/pi/Desktop/images/22062026/12/28/image_22062026_12_29_04_58906.jpg
MAIN: 2026-06-22 12:29:05,564 - INFO - duration: 1.0103007520010578
MAIN: 2026-06-22 12:29:05,564 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/29'
MAIN: 2026-06-22 12:30: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

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:30:06,027 - INFO - taking picture
MAIN: 2026-06-22 12:30:06,028 - INFO - we take 360 photos in this while loop
MAIN: 2026-06-22 12:30:06,028 - INFO - /home/pi/Desktop/images/22062026/12/29/image_22062026_12_30_05_60539.jpg
MAIN: 2026-06-22 12:30:06,028 - INFO - duration: 0.9350182470006985
MAIN: 2026-06-22 12:30:06,028 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/30'
MAIN: 2026-06-22 12:30:06,334 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:31: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-06-22 12:31:05,313 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:31:05,982 - INFO - taking picture
MAIN: 2026-06-22 12:31:05,982 - INFO - we take 361 photos in this while loop
MAIN: 2026-06-22 12:31:05,982 - INFO - /home/pi/Desktop/images/22062026/12/30/image_22062026_12_31_05_60003.jpg
MAIN: 2026-06-22 12:31:05,983 - INFO - duration: 0.8858942590013612
MAIN: 2026-06-22 12:31:05,983 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:32:04,919 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:32:05,230 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:32:05,960 - INFO - taking picture
MAIN: 2026-06-22 12:32:05,960 - INFO - we take 362 photos in this while loop
MAIN: 2026-06-22 12:32:05,960 - INFO - /home/pi/Desktop/images/22062026/12/31/image_22062026_12_32_05_59894.jpg
MAIN: 2026-06-22 12:32:05,960 - INFO - duration: 0.9692406249996566
MAIN: 2026-06-22 12:32:05,960 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:33:04,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-06-22 12:33:05,202 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:33:05,868 - INFO - taking picture
MAIN: 2026-06-22 12:33:05,868 - INFO - we take 363 photos in this while loop
MAIN: 2026-06-22 12:33:05,868 - INFO - /home/pi/Desktop/images/22062026/12/32/image_22062026_12_33_05_59932.jpg
MAIN: 2026-06-22 12:33:05,869 - INFO - duration: 0.9447415579998051
MAIN: 2026-06-22 12:33:05,869 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:34: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-06-22 12:34: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-06-22 12:34:05,858 - INFO - taking picture
MAIN: 2026-06-22 12:34:05,859 - INFO - we take 364 photos in this while loop
MAIN: 2026-06-22 12:34:05,859 - INFO - /home/pi/Desktop/images/22062026/12/33/image_22062026_12_34_05_59940.jpg
MAIN: 2026-06-22 12:34:05,859 - INFO - duration: 0.994572652001807
MAIN: 2026-06-22 12:34:05,859 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 12:35:05,371 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:35:05,543 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:35:06,073 - INFO - taking picture
MAIN: 2026-06-22 12:35:06,073 - INFO - we take 365 photos in this while loop
MAIN: 2026-06-22 12:35:06,073 - INFO - /home/pi/Desktop/images/22062026/12/34/image_22062026_12_35_05_60265.jpg
MAIN: 2026-06-22 12:35:06,073 - INFO - duration: 0.9437528220005333
MAIN: 2026-06-22 12:35:06,073 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 12:36:05,297 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:36:05,695 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:36:05,974 - INFO - taking picture
MAIN: 2026-06-22 12:36:05,974 - INFO - we take 366 photos in this while loop
MAIN: 2026-06-22 12:36:05,974 - INFO - /home/pi/Desktop/images/22062026/12/35/image_22062026_12_36_05_59905.jpg
MAIN: 2026-06-22 12:36:05,974 - INFO - duration: 0.9389092519995756
MAIN: 2026-06-22 12:36:05,975 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 12:37:04,843 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:37:05,191 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:37:05,862 - INFO - taking picture
MAIN: 2026-06-22 12:37:05,863 - INFO - we take 367 photos in this while loop
MAIN: 2026-06-22 12:37:05,863 - INFO - /home/pi/Desktop/images/22062026/12/36/image_22062026_12_37_05_59942.jpg
MAIN: 2026-06-22 12:37:05,863 - INFO - duration: 0.8853382449997298
MAIN: 2026-06-22 12:37:05,863 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:38:05,063 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:38:05,145 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:38:05,814 - INFO - taking picture
MAIN: 2026-06-22 12:38:05,814 - INFO - we take 368 photos in this while loop
MAIN: 2026-06-22 12:38:05,815 - INFO - /home/pi/Desktop/images/22062026/12/37/image_22062026_12_38_05_59887.jpg
MAIN: 2026-06-22 12:38:05,815 - INFO - duration: 0.9492013079980097
MAIN: 2026-06-22 12:38:05,815 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/38'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:39: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-06-22 12:39: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-06-22 12:39:05,681 - INFO - taking picture
MAIN: 2026-06-22 12:39:05,681 - INFO - we take 369 photos in this while loop
MAIN: 2026-06-22 12:39:05,681 - INFO - /home/pi/Desktop/images/22062026/12/38/image_22062026_12_39_05_59876.jpg
MAIN: 2026-06-22 12:39:05,681 - INFO - duration: 0.9398433360001945
MAIN: 2026-06-22 12:39:05,682 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/39'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:40:04,997 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:40:05,533 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:40:05,698 - INFO - taking picture
MAIN: 2026-06-22 12:40:05,698 - INFO - we take 370 photos in this while loop
MAIN: 2026-06-22 12:40:05,698 - INFO - /home/pi/Desktop/images/22062026/12/39/image_22062026_12_40_04_60022.jpg
MAIN: 2026-06-22 12:40:05,698 - INFO - duration: 0.9346135000014328
MAIN: 2026-06-22 12:40:05,699 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/40'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:41: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-06-22 12:41:05,444 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:41:06,114 - INFO - taking picture
MAIN: 2026-06-22 12:41:06,115 - INFO - we take 371 photos in this while loop
MAIN: 2026-06-22 12:41:06,115 - INFO - /home/pi/Desktop/images/22062026/12/40/image_22062026_12_41_05_60429.jpg
MAIN: 2026-06-22 12:41:06,115 - INFO - duration: 0.9217210099996009
MAIN: 2026-06-22 12:41:06,115 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:42: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-06-22 12:42:05,330 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:42:05,997 - INFO - taking picture
MAIN: 2026-06-22 12:42:05,997 - INFO - we take 372 photos in this while loop
MAIN: 2026-06-22 12:42:05,997 - INFO - /home/pi/Desktop/images/22062026/12/41/image_22062026_12_42_05_59845.jpg
MAIN: 2026-06-22 12:42:05,997 - INFO - duration: 0.9587166589990375
MAIN: 2026-06-22 12:42:05,998 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 12:43: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-06-22 12:43:05,071 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:43:05,836 - INFO - taking picture
MAIN: 2026-06-22 12:43:05,836 - INFO - we take 373 photos in this while loop
MAIN: 2026-06-22 12:43:05,836 - INFO - /home/pi/Desktop/images/22062026/12/42/image_22062026_12_43_05_59817.jpg
MAIN: 2026-06-22 12:43:05,836 - INFO - duration: 0.9798320199988666
MAIN: 2026-06-22 12:43:05,836 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:44:05,234 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:44:05,570 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:44:06,301 - INFO - taking picture
MAIN: 2026-06-22 12:44:06,302 - INFO - we take 374 photos in this while loop
MAIN: 2026-06-22 12:44:06,302 - INFO - /home/pi/Desktop/images/22062026/12/43/image_22062026_12_44_05_60478.jpg
MAIN: 2026-06-22 12:44:06,302 - INFO - duration: 0.9669386649984517
MAIN: 2026-06-22 12:44:06,302 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/44'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:45:04,964 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:45:05,221 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:45:05,701 - INFO - taking picture
MAIN: 2026-06-22 12:45:05,701 - INFO - we take 375 photos in this while loop
MAIN: 2026-06-22 12:45:05,701 - INFO - /home/pi/Desktop/images/22062026/12/44/image_22062026_12_45_04_59358.jpg
MAIN: 2026-06-22 12:45:05,701 - INFO - duration: 1.0083770400015055
MAIN: 2026-06-22 12:45:05,702 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:46:05,278 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:46: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-06-22 12:46:05,957 - INFO - taking picture
MAIN: 2026-06-22 12:46:05,957 - INFO - we take 376 photos in this while loop
MAIN: 2026-06-22 12:46:05,957 - INFO - /home/pi/Desktop/images/22062026/12/45/image_22062026_12_46_05_60330.jpg
MAIN: 2026-06-22 12:46:05,957 - INFO - duration: 0.933267815002182
MAIN: 2026-06-22 12:46:05,957 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:47:05,236 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:47:05,533 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:47:05,917 - INFO - taking picture
MAIN: 2026-06-22 12:47:05,917 - INFO - we take 377 photos in this while loop
MAIN: 2026-06-22 12:47:05,917 - INFO - /home/pi/Desktop/images/22062026/12/46/image_22062026_12_47_05_59944.jpg
MAIN: 2026-06-22 12:47:05,917 - INFO - duration: 0.9490232950010977
MAIN: 2026-06-22 12:47:05,918 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:48: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-06-22 12:48:05,672 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:48:05,906 - INFO - taking picture
MAIN: 2026-06-22 12:48:05,906 - INFO - we take 378 photos in this while loop
MAIN: 2026-06-22 12:48:05,906 - INFO - /home/pi/Desktop/images/22062026/12/47/image_22062026_12_48_05_59990.jpg
MAIN: 2026-06-22 12:48:05,906 - INFO - duration: 0.9480798830009007
MAIN: 2026-06-22 12:48:05,907 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:49:04,745 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:49:04,934 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:49:05,600 - INFO - taking picture
MAIN: 2026-06-22 12:49:05,601 - INFO - we take 379 photos in this while loop
MAIN: 2026-06-22 12:49:05,601 - INFO - /home/pi/Desktop/images/22062026/12/48/image_22062026_12_49_04_59701.jpg
MAIN: 2026-06-22 12:49:05,601 - INFO - duration: 0.9406463779996557
MAIN: 2026-06-22 12:49:05,601 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:50:04,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-06-22 12:50:05,453 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:50:05,537 - INFO - taking picture
MAIN: 2026-06-22 12:50:05,537 - INFO - we take 380 photos in this while loop
MAIN: 2026-06-22 12:50:05,538 - INFO - /home/pi/Desktop/images/22062026/12/49/image_22062026_12_50_04_59956.jpg
MAIN: 2026-06-22 12:50:05,538 - INFO - duration: 0.9206816049991176
MAIN: 2026-06-22 12:50:05,538 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/50'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:51: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-06-22 12:51:05,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-06-22 12:51:06,623 - INFO - taking picture
MAIN: 2026-06-22 12:51:06,624 - INFO - we take 381 photos in this while loop
MAIN: 2026-06-22 12:51:06,624 - INFO - /home/pi/Desktop/images/22062026/12/50/image_22062026_12_51_05_61086.jpg
MAIN: 2026-06-22 12:51:06,624 - INFO - duration: 0.9202749030009727
MAIN: 2026-06-22 12:51:06,624 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:52:05,593 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:52:05,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-06-22 12:52:06,642 - INFO - taking picture
MAIN: 2026-06-22 12:52:06,642 - INFO - we take 382 photos in this while loop
MAIN: 2026-06-22 12:52:06,642 - INFO - /home/pi/Desktop/images/22062026/12/51/image_22062026_12_52_05_60021.jpg
MAIN: 2026-06-22 12:52:06,642 - INFO - duration: 0.9172010330003104
MAIN: 2026-06-22 12:52:06,643 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 12:53:05,177 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:53:05,675 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:53:06,378 - INFO - taking picture
MAIN: 2026-06-22 12:53:06,379 - INFO - we take 383 photos in this while loop
MAIN: 2026-06-22 12:53:06,379 - INFO - /home/pi/Desktop/images/22062026/12/52/image_22062026_12_53_05_59736.jpg
MAIN: 2026-06-22 12:53:06,379 - INFO - duration: 0.9170170270008384
MAIN: 2026-06-22 12:53:06,379 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:54: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-06-22 12:54:05,777 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:54:06,294 - INFO - taking picture
MAIN: 2026-06-22 12:54:06,295 - INFO - we take 384 photos in this while loop
MAIN: 2026-06-22 12:54:06,295 - INFO - /home/pi/Desktop/images/22062026/12/53/image_22062026_12_54_05_59851.jpg
MAIN: 2026-06-22 12:54:06,295 - INFO - duration: 0.9817545030018664
MAIN: 2026-06-22 12:54:06,295 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/54'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:55: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-06-22 12:55:06,024 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:55:06,215 - INFO - taking picture
MAIN: 2026-06-22 12:55:06,216 - INFO - we take 385 photos in this while loop
MAIN: 2026-06-22 12:55:06,216 - INFO - /home/pi/Desktop/images/22062026/12/54/image_22062026_12_55_05_59995.jpg
MAIN: 2026-06-22 12:55:06,216 - INFO - duration: 0.9067832840009942
MAIN: 2026-06-22 12:55:06,216 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/55'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:56:05,112 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:56:05,407 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:56:06,128 - INFO - taking picture
MAIN: 2026-06-22 12:56:06,128 - INFO - we take 386 photos in this while loop
MAIN: 2026-06-22 12:56:06,129 - INFO - /home/pi/Desktop/images/22062026/12/55/image_22062026_12_56_05_59846.jpg
MAIN: 2026-06-22 12:56:06,129 - INFO - duration: 0.973150957001053
MAIN: 2026-06-22 12:56:06,129 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 12:57:04,897 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:57:05,619 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 12:57:06,342 - INFO - taking picture
MAIN: 2026-06-22 12:57:06,343 - INFO - we take 387 photos in this while loop
MAIN: 2026-06-22 12:57:06,343 - INFO - /home/pi/Desktop/images/22062026/12/56/image_22062026_12_57_05_60163.jpg
MAIN: 2026-06-22 12:57:06,343 - INFO - duration: 1.0241246650002722
MAIN: 2026-06-22 12:57:06,343 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 12:58: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-06-22 12:58:05,158 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:58:05,628 - INFO - taking picture
MAIN: 2026-06-22 12:58:05,628 - INFO - we take 388 photos in this while loop
MAIN: 2026-06-22 12:58:05,628 - INFO - /home/pi/Desktop/images/22062026/12/57/image_22062026_12_58_04_59290.jpg
MAIN: 2026-06-22 12:58:05,628 - INFO - duration: 1.018781950999255
MAIN: 2026-06-22 12:58:05,628 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 12:59:04,983 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 12:59: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-06-22 12:59:05,720 - INFO - taking picture
MAIN: 2026-06-22 12:59:05,721 - INFO - we take 389 photos in this while loop
MAIN: 2026-06-22 12:59:05,721 - INFO - /home/pi/Desktop/images/22062026/12/58/image_22062026_12_59_04_60131.jpg
MAIN: 2026-06-22 12:59:05,721 - INFO - duration: 0.9802593940003135
MAIN: 2026-06-22 12:59:05,721 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/12/59'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:00: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-06-22 13:00:05,673 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:00:05,990 - INFO - taking picture
MAIN: 2026-06-22 13:00:05,990 - INFO - we take 390 photos in this while loop
MAIN: 2026-06-22 13:00:05,990 - INFO - /home/pi/Desktop/images/22062026/12/59/image_22062026_13_00_05_60232.jpg
MAIN: 2026-06-22 13:00:05,990 - INFO - duration: 1.0172180029985611
MAIN: 2026-06-22 13:00:05,991 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/00'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:01:05,417 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:01: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-06-22 13:01:06,094 - INFO - taking picture
MAIN: 2026-06-22 13:01:06,094 - INFO - we take 391 photos in this while loop
MAIN: 2026-06-22 13:01:06,094 - INFO - /home/pi/Desktop/images/22062026/13/00/image_22062026_13_01_05_60171.jpg
MAIN: 2026-06-22 13:01:06,094 - INFO - duration: 0.9497834280009556
MAIN: 2026-06-22 13:01:06,094 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:02:05,360 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:02:05,738 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:02:06,037 - INFO - taking picture
MAIN: 2026-06-22 13:02:06,038 - INFO - we take 392 photos in this while loop
MAIN: 2026-06-22 13:02:06,038 - INFO - /home/pi/Desktop/images/22062026/13/01/image_22062026_13_02_05_59962.jpg
MAIN: 2026-06-22 13:02:06,038 - INFO - duration: 0.9314902100013569
MAIN: 2026-06-22 13:02:06,038 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/02'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:03: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-06-22 13:03:05,338 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:03:06,005 - INFO - taking picture
MAIN: 2026-06-22 13:03:06,005 - INFO - we take 393 photos in this while loop
MAIN: 2026-06-22 13:03:06,005 - INFO - /home/pi/Desktop/images/22062026/13/02/image_22062026_13_03_05_60019.jpg
MAIN: 2026-06-22 13:03:06,005 - INFO - duration: 0.8796399959974224
MAIN: 2026-06-22 13:03:06,005 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:04: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-06-22 13:04:05,473 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:04:05,832 - INFO - taking picture
MAIN: 2026-06-22 13:04:05,832 - INFO - we take 394 photos in this while loop
MAIN: 2026-06-22 13:04:05,832 - INFO - /home/pi/Desktop/images/22062026/13/03/image_22062026_13_04_05_59753.jpg
MAIN: 2026-06-22 13:04:05,832 - INFO - duration: 0.9535033780011872
MAIN: 2026-06-22 13:04:05,832 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/04'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:05:05,193 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:05:05,534 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:05:05,889 - INFO - taking picture
MAIN: 2026-06-22 13:05:05,889 - INFO - we take 395 photos in this while loop
MAIN: 2026-06-22 13:05:05,890 - INFO - /home/pi/Desktop/images/22062026/13/04/image_22062026_13_05_05_60050.jpg
MAIN: 2026-06-22 13:05:05,890 - INFO - duration: 0.9605210440022347
MAIN: 2026-06-22 13:05:05,890 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:06:05,245 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:06:05,547 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:06:05,963 - INFO - taking picture
MAIN: 2026-06-22 13:06:05,963 - INFO - we take 396 photos in this while loop
MAIN: 2026-06-22 13:06:05,963 - INFO - /home/pi/Desktop/images/22062026/13/05/image_22062026_13_06_05_60045.jpg
MAIN: 2026-06-22 13:06:05,963 - INFO - duration: 0.9891474489995744
MAIN: 2026-06-22 13:06:05,964 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:07:05,379 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:07: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-06-22 13:07:06,104 - INFO - taking picture
MAIN: 2026-06-22 13:07:06,105 - INFO - we take 397 photos in this while loop
MAIN: 2026-06-22 13:07:06,105 - INFO - /home/pi/Desktop/images/22062026/13/06/image_22062026_13_07_05_60133.jpg
MAIN: 2026-06-22 13:07:06,105 - INFO - duration: 0.9972427549982967
MAIN: 2026-06-22 13:07:06,105 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/07'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:08:04,934 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:08:05,832 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:08:06,498 - INFO - taking picture
MAIN: 2026-06-22 13:08:06,498 - INFO - we take 398 photos in this while loop
MAIN: 2026-06-22 13:08:06,498 - INFO - /home/pi/Desktop/images/22062026/13/07/image_22062026_13_08_05_60449.jpg
MAIN: 2026-06-22 13:08:06,498 - INFO - duration: 0.9412818399978278
MAIN: 2026-06-22 13:08:06,499 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/08'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:09:04,926 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:09:05,782 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:09:06,448 - INFO - taking picture
MAIN: 2026-06-22 13:09:06,448 - INFO - we take 399 photos in this while loop
MAIN: 2026-06-22 13:09:06,449 - INFO - /home/pi/Desktop/images/22062026/13/08/image_22062026_13_09_05_59962.jpg
MAIN: 2026-06-22 13:09:06,449 - INFO - duration: 0.9291323690013087
MAIN: 2026-06-22 13:09:06,449 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/09'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:10:04,747 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:10:05,447 - INFO - taking picture
MAIN: 2026-06-22 13:10:05,448 - INFO - we take 400 photos in this while loop
MAIN: 2026-06-22 13:10:05,448 - INFO - /home/pi/Desktop/images/22062026/13/09/image_22062026_13_10_04_59003.jpg
MAIN: 2026-06-22 13:10:05,448 - INFO - duration: 0.9257779709987517
MAIN: 2026-06-22 13:10:05,449 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/10'
MAIN: 2026-06-22 13:10:05,645 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:11:05,348 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:11:05,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-06-22 13:11:06,580 - INFO - taking picture
MAIN: 2026-06-22 13:11:06,580 - INFO - we take 401 photos in this while loop
MAIN: 2026-06-22 13:11:06,581 - INFO - /home/pi/Desktop/images/22062026/13/10/image_22062026_13_11_05_61166.jpg
MAIN: 2026-06-22 13:11:06,581 - INFO - duration: 0.8917401520011481
MAIN: 2026-06-22 13:11:06,581 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:12:05,774 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:12:05,889 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:12:06,558 - INFO - taking picture
MAIN: 2026-06-22 13:12:06,558 - INFO - we take 402 photos in this while loop
MAIN: 2026-06-22 13:12:06,558 - INFO - /home/pi/Desktop/images/22062026/13/11/image_22062026_13_12_05_59907.jpg
MAIN: 2026-06-22 13:12:06,558 - INFO - duration: 0.9612818080022407
MAIN: 2026-06-22 13:12:06,558 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:13:04,942 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:13:05,630 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:13:06,297 - INFO - taking picture
MAIN: 2026-06-22 13:13:06,297 - INFO - we take 403 photos in this while loop
MAIN: 2026-06-22 13:13:06,297 - INFO - /home/pi/Desktop/images/22062026/13/12/image_22062026_13_13_05_59817.jpg
MAIN: 2026-06-22 13:13:06,298 - INFO - duration: 0.8833968869985256
MAIN: 2026-06-22 13:13:06,298 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 13:14: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-06-22 13:14: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-06-22 13:14:06,538 - INFO - taking picture
MAIN: 2026-06-22 13:14:06,539 - INFO - we take 404 photos in this while loop
MAIN: 2026-06-22 13:14:06,539 - INFO - /home/pi/Desktop/images/22062026/13/13/image_22062026_13_14_05_60162.jpg
MAIN: 2026-06-22 13:14:06,539 - INFO - duration: 0.962560793999728
MAIN: 2026-06-22 13:14:06,539 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 13:15:04,791 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:15:05,487 - INFO - taking picture
MAIN: 2026-06-22 13:15:05,487 - INFO - we take 405 photos in this while loop
MAIN: 2026-06-22 13:15:05,488 - INFO - /home/pi/Desktop/images/22062026/13/14/image_22062026_13_15_04_58979.jpg
MAIN: 2026-06-22 13:15:05,488 - INFO - duration: 0.9314971970015904
MAIN: 2026-06-22 13:15:05,488 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/15'
MAIN: 2026-06-22 13:15:05,734 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:16:05,793 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:16:05,953 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:16:06,619 - INFO - taking picture
MAIN: 2026-06-22 13:16:06,620 - INFO - we take 406 photos in this while loop
MAIN: 2026-06-22 13:16:06,620 - INFO - /home/pi/Desktop/images/22062026/13/15/image_22062026_13_16_05_61116.jpg
MAIN: 2026-06-22 13:16:06,620 - INFO - duration: 0.9472019290005846
MAIN: 2026-06-22 13:16:06,620 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 13:17:04,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-06-22 13:17:05,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-06-22 13:17:06,623 - INFO - taking picture
MAIN: 2026-06-22 13:17:06,623 - INFO - we take 407 photos in this while loop
MAIN: 2026-06-22 13:17:06,623 - INFO - /home/pi/Desktop/images/22062026/13/16/image_22062026_13_17_05_60020.jpg
MAIN: 2026-06-22 13:17:06,623 - INFO - duration: 0.9296804229998088
MAIN: 2026-06-22 13:17:06,624 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/17'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:18:05,138 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:18: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-06-22 13:18:06,595 - INFO - taking picture
MAIN: 2026-06-22 13:18:06,595 - INFO - we take 408 photos in this while loop
MAIN: 2026-06-22 13:18:06,595 - INFO - /home/pi/Desktop/images/22062026/13/17/image_22062026_13_18_05_59920.jpg
MAIN: 2026-06-22 13:18:06,596 - INFO - duration: 0.9808947320016159
MAIN: 2026-06-22 13:18:06,596 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/18'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:19: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-06-22 13:19:05,001 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:19:05,646 - INFO - taking picture
MAIN: 2026-06-22 13:19:05,646 - INFO - we take 409 photos in this while loop
MAIN: 2026-06-22 13:19:05,646 - INFO - /home/pi/Desktop/images/22062026/13/18/image_22062026_13_19_04_59029.jpg
MAIN: 2026-06-22 13:19:05,646 - INFO - duration: 1.002333644999453
MAIN: 2026-06-22 13:19:05,647 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:20: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-06-22 13:20:05,879 - INFO - taking picture
MAIN: 2026-06-22 13:20:05,879 - INFO - we take 410 photos in this while loop
MAIN: 2026-06-22 13:20:05,880 - INFO - /home/pi/Desktop/images/22062026/13/19/image_22062026_13_20_05_60328.jpg
MAIN: 2026-06-22 13:20:05,880 - INFO - duration: 0.9070394840018707
MAIN: 2026-06-22 13:20:05,880 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/20'
MAIN: 2026-06-22 13:20:05,915 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:21:05,259 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:21:05,277 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:21:06,007 - INFO - taking picture
MAIN: 2026-06-22 13:21:06,007 - INFO - we take 411 photos in this while loop
MAIN: 2026-06-22 13:21:06,007 - INFO - /home/pi/Desktop/images/22062026/13/20/image_22062026_13_21_05_60037.jpg
MAIN: 2026-06-22 13:21:06,007 - INFO - duration: 0.9973337699993863
MAIN: 2026-06-22 13:21:06,007 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 13:22: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-06-22 13:22:05,566 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:22:06,167 - INFO - taking picture
MAIN: 2026-06-22 13:22:06,167 - INFO - we take 412 photos in this while loop
MAIN: 2026-06-22 13:22:06,168 - INFO - /home/pi/Desktop/images/22062026/13/21/image_22062026_13_22_05_60197.jpg
MAIN: 2026-06-22 13:22:06,168 - INFO - duration: 0.9604898280013003
MAIN: 2026-06-22 13:22:06,168 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/22'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:23:04,679 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:23:05,533 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:23:06,203 - INFO - taking picture
MAIN: 2026-06-22 13:23:06,203 - INFO - we take 413 photos in this while loop
MAIN: 2026-06-22 13:23:06,203 - INFO - /home/pi/Desktop/images/22062026/13/22/image_22062026_13_23_05_60065.jpg
MAIN: 2026-06-22 13:23:06,203 - INFO - duration: 0.9301855730009265
MAIN: 2026-06-22 13:23:06,203 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/23'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:24: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-06-22 13:24: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-06-22 13:24:06,216 - INFO - taking picture
MAIN: 2026-06-22 13:24:06,217 - INFO - we take 414 photos in this while loop
MAIN: 2026-06-22 13:24:06,217 - INFO - /home/pi/Desktop/images/22062026/13/23/image_22062026_13_24_05_59993.jpg
MAIN: 2026-06-22 13:24:06,217 - INFO - duration: 0.9505947190009465
MAIN: 2026-06-22 13:24:06,217 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 13:25:05,596 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:25: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-06-22 13:25:06,341 - INFO - taking picture
MAIN: 2026-06-22 13:25:06,342 - INFO - we take 415 photos in this while loop
MAIN: 2026-06-22 13:25:06,342 - INFO - /home/pi/Desktop/images/22062026/13/24/image_22062026_13_25_05_60147.jpg
MAIN: 2026-06-22 13:25:06,342 - INFO - duration: 0.927722567001183
MAIN: 2026-06-22 13:25:06,342 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/25'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:26: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-06-22 13:26: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-06-22 13:26:06,538 - INFO - taking picture
MAIN: 2026-06-22 13:26:06,538 - INFO - we take 416 photos in this while loop
MAIN: 2026-06-22 13:26:06,538 - INFO - /home/pi/Desktop/images/22062026/13/25/image_22062026_13_26_05_60181.jpg
MAIN: 2026-06-22 13:26:06,538 - INFO - duration: 0.9424418349990447
MAIN: 2026-06-22 13:26:06,539 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13: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-06-22 13:27:05,315 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:27:05,561 - INFO - taking picture
MAIN: 2026-06-22 13:27:05,562 - INFO - we take 417 photos in this while loop
MAIN: 2026-06-22 13:27:05,562 - INFO - /home/pi/Desktop/images/22062026/13/26/image_22062026_13_27_04_59000.jpg
MAIN: 2026-06-22 13:27:05,562 - INFO - duration: 0.9653499599990027
MAIN: 2026-06-22 13:27:05,562 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:28:05,188 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:28:05,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-06-22 13:28:05,868 - INFO - taking picture
MAIN: 2026-06-22 13:28:05,869 - INFO - we take 418 photos in this while loop
MAIN: 2026-06-22 13:28:05,869 - INFO - /home/pi/Desktop/images/22062026/13/27/image_22062026_13_28_05_60322.jpg
MAIN: 2026-06-22 13:28:05,869 - INFO - duration: 0.9498573189994204
MAIN: 2026-06-22 13:28:05,869 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/28'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:29:05,133 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13: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-06-22 13:29:05,808 - INFO - taking picture
MAIN: 2026-06-22 13:29:05,808 - INFO - we take 419 photos in this while loop
MAIN: 2026-06-22 13:29:05,808 - INFO - /home/pi/Desktop/images/22062026/13/28/image_22062026_13_29_05_59952.jpg
MAIN: 2026-06-22 13:29:05,808 - INFO - duration: 0.936481652999646
MAIN: 2026-06-22 13:29:05,809 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/29'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:30:05,348 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:30:05,524 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:30:06,191 - INFO - taking picture
MAIN: 2026-06-22 13:30:06,192 - INFO - we take 420 photos in this while loop
MAIN: 2026-06-22 13:30:06,192 - INFO - /home/pi/Desktop/images/22062026/13/29/image_22062026_13_30_05_60428.jpg
MAIN: 2026-06-22 13:30:06,192 - INFO - duration: 0.8912691179975809
MAIN: 2026-06-22 13:30:06,192 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/30'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13: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-06-22 13:31:05,557 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:31:06,226 - INFO - taking picture
MAIN: 2026-06-22 13:31:06,226 - INFO - we take 421 photos in this while loop
MAIN: 2026-06-22 13:31:06,226 - INFO - /home/pi/Desktop/images/22062026/13/30/image_22062026_13_31_05_60008.jpg
MAIN: 2026-06-22 13:31:06,226 - INFO - duration: 0.9169825879980635
MAIN: 2026-06-22 13:31:06,226 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:32: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-06-22 13:32: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-06-22 13:32:06,439 - INFO - taking picture
MAIN: 2026-06-22 13:32:06,439 - INFO - we take 422 photos in this while loop
MAIN: 2026-06-22 13:32:06,439 - INFO - /home/pi/Desktop/images/22062026/13/31/image_22062026_13_32_05_60242.jpg
MAIN: 2026-06-22 13:32:06,439 - INFO - duration: 0.8880280299999868
MAIN: 2026-06-22 13:32:06,440 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:33:05,193 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:33:05,937 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:33:06,607 - INFO - taking picture
MAIN: 2026-06-22 13:33:06,607 - INFO - we take 423 photos in this while loop
MAIN: 2026-06-22 13:33:06,608 - INFO - /home/pi/Desktop/images/22062026/13/32/image_22062026_13_33_05_60120.jpg
MAIN: 2026-06-22 13:33:06,608 - INFO - duration: 0.9353489000022819
MAIN: 2026-06-22 13:33:06,608 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:34:04,855 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:34:05,520 - INFO - taking picture
MAIN: 2026-06-22 13:34:05,520 - INFO - we take 424 photos in this while loop
MAIN: 2026-06-22 13:34:05,520 - INFO - /home/pi/Desktop/images/22062026/13/33/image_22062026_13_34_04_58936.jpg
MAIN: 2026-06-22 13:34:05,520 - INFO - duration: 0.9115412579994882
MAIN: 2026-06-22 13:34:05,520 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/34'
MAIN: 2026-06-22 13:34:05,806 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:35:05,072 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:35:05,775 - INFO - taking picture
MAIN: 2026-06-22 13:35:05,776 - INFO - we take 425 photos in this while loop
MAIN: 2026-06-22 13:35:05,776 - INFO - /home/pi/Desktop/images/22062026/13/34/image_22062026_13_35_05_60229.jpg
MAIN: 2026-06-22 13:35:05,776 - INFO - duration: 0.9376141369975812
MAIN: 2026-06-22 13:35:05,776 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/35'
MAIN: 2026-06-22 13:35:05,825 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:36:05,156 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:36:05,551 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:36:06,215 - INFO - taking picture
MAIN: 2026-06-22 13:36:06,215 - INFO - we take 426 photos in this while loop
MAIN: 2026-06-22 13:36:06,215 - INFO - /home/pi/Desktop/images/22062026/13/35/image_22062026_13_36_05_60499.jpg
MAIN: 2026-06-22 13:36:06,216 - INFO - duration: 0.877350042002945
MAIN: 2026-06-22 13:36:06,216 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/36'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:37: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-06-22 13:37:05,521 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:37:06,243 - INFO - taking picture
MAIN: 2026-06-22 13:37:06,243 - INFO - we take 427 photos in this while loop
MAIN: 2026-06-22 13:37:06,243 - INFO - /home/pi/Desktop/images/22062026/13/36/image_22062026_13_37_05_59963.jpg
MAIN: 2026-06-22 13:37:06,244 - INFO - duration: 0.9418322580022505
MAIN: 2026-06-22 13:37:06,244 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:38: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-06-22 13:38: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-06-22 13:38:06,453 - INFO - taking picture
MAIN: 2026-06-22 13:38:06,453 - INFO - we take 428 photos in this while loop
MAIN: 2026-06-22 13:38:06,453 - INFO - /home/pi/Desktop/images/22062026/13/37/image_22062026_13_38_05_60267.jpg
MAIN: 2026-06-22 13:38:06,454 - INFO - duration: 0.883865132003848
MAIN: 2026-06-22 13:38:06,454 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/38'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:39: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-06-22 13:39:05,463 - INFO - taking picture
MAIN: 2026-06-22 13:39:05,463 - INFO - we take 429 photos in this while loop
MAIN: 2026-06-22 13:39:05,463 - INFO - /home/pi/Desktop/images/22062026/13/38/image_22062026_13_39_04_58960.jpg
MAIN: 2026-06-22 13:39:05,463 - INFO - duration: 0.9332004460011376
MAIN: 2026-06-22 13:39:05,463 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/39'
MAIN: 2026-06-22 13:39:05,471 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:40: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-06-22 13:40:05,773 - INFO - taking picture
MAIN: 2026-06-22 13:40:05,773 - INFO - we take 430 photos in this while loop
MAIN: 2026-06-22 13:40:05,773 - INFO - /home/pi/Desktop/images/22062026/13/39/image_22062026_13_40_05_60311.jpg
MAIN: 2026-06-22 13:40:05,773 - INFO - duration: 0.9311967510002432
MAIN: 2026-06-22 13:40:05,773 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/40'
MAIN: 2026-06-22 13:40:05,984 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:41:05,193 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:41:05,815 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:41:05,866 - INFO - taking picture
MAIN: 2026-06-22 13:41:05,867 - INFO - we take 431 photos in this while loop
MAIN: 2026-06-22 13:41:05,867 - INFO - /home/pi/Desktop/images/22062026/13/40/image_22062026_13_41_05_60085.jpg
MAIN: 2026-06-22 13:41:05,867 - INFO - duration: 0.9398286080031539
MAIN: 2026-06-22 13:41:05,868 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:42:04,947 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:42:05,533 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:42:06,196 - INFO - taking picture
MAIN: 2026-06-22 13:42:06,196 - INFO - we take 432 photos in this while loop
MAIN: 2026-06-22 13:42:06,197 - INFO - /home/pi/Desktop/images/22062026/13/41/image_22062026_13_42_05_60379.jpg
MAIN: 2026-06-22 13:42:06,197 - INFO - duration: 0.8900750460015843
MAIN: 2026-06-22 13:42:06,197 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:43: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-06-22 13:43: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-06-22 13:43:06,349 - INFO - taking picture
MAIN: 2026-06-22 13:43:06,350 - INFO - we take 433 photos in this while loop
MAIN: 2026-06-22 13:43:06,350 - INFO - /home/pi/Desktop/images/22062026/13/42/image_22062026_13_43_05_60114.jpg
MAIN: 2026-06-22 13:43:06,350 - INFO - duration: 0.9291725310031325
MAIN: 2026-06-22 13:43:06,350 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:44:04,802 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:44:05,522 - INFO - taking picture
MAIN: 2026-06-22 13:44:05,522 - INFO - we take 434 photos in this while loop
MAIN: 2026-06-22 13:44:05,522 - INFO - /home/pi/Desktop/images/22062026/13/43/image_22062026_13_44_04_59086.jpg
MAIN: 2026-06-22 13:44:05,522 - INFO - duration: 1.0149336700051208
MAIN: 2026-06-22 13:44:05,523 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/44'
MAIN: 2026-06-22 13:44:05,537 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:45:05,368 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:45:05,415 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:45:06,126 - INFO - taking picture
MAIN: 2026-06-22 13:45:06,127 - INFO - we take 435 photos in this while loop
MAIN: 2026-06-22 13:45:06,127 - INFO - /home/pi/Desktop/images/22062026/13/44/image_22062026_13_45_05_60668.jpg
MAIN: 2026-06-22 13:45:06,127 - INFO - duration: 0.9510076260048663
MAIN: 2026-06-22 13:45:06,127 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 13:46:05,269 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:46:05,395 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:46:06,060 - INFO - taking picture
MAIN: 2026-06-22 13:46:06,060 - INFO - we take 436 photos in this while loop
MAIN: 2026-06-22 13:46:06,060 - INFO - /home/pi/Desktop/images/22062026/13/45/image_22062026_13_46_05_59937.jpg
MAIN: 2026-06-22 13:46:06,060 - INFO - duration: 0.9471712160011521
MAIN: 2026-06-22 13:46:06,060 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:47:05,360 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:47:05,583 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:47:06,034 - INFO - taking picture
MAIN: 2026-06-22 13:47:06,034 - INFO - we take 437 photos in this while loop
MAIN: 2026-06-22 13:47:06,034 - INFO - /home/pi/Desktop/images/22062026/13/46/image_22062026_13_47_05_59967.jpg
MAIN: 2026-06-22 13:47:06,034 - INFO - duration: 0.9535742169973673
MAIN: 2026-06-22 13:47:06,034 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:48: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-06-22 13:48:05,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-06-22 13:48:05,979 - INFO - taking picture
MAIN: 2026-06-22 13:48:05,979 - INFO - we take 438 photos in this while loop
MAIN: 2026-06-22 13:48:05,980 - INFO - /home/pi/Desktop/images/22062026/13/47/image_22062026_13_48_05_59917.jpg
MAIN: 2026-06-22 13:48:05,980 - INFO - duration: 0.9819301960014855
MAIN: 2026-06-22 13:48:05,980 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:49: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-06-22 13:49:05,839 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:49:06,502 - INFO - taking picture
MAIN: 2026-06-22 13:49:06,502 - INFO - we take 439 photos in this while loop
MAIN: 2026-06-22 13:49:06,502 - INFO - /home/pi/Desktop/images/22062026/13/48/image_22062026_13_49_05_60573.jpg
MAIN: 2026-06-22 13:49:06,502 - INFO - duration: 0.9310710150020896
MAIN: 2026-06-22 13:49:06,503 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:50:05,478 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:50: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-06-22 13:50:06,451 - INFO - taking picture
MAIN: 2026-06-22 13:50:06,451 - INFO - we take 440 photos in this while loop
MAIN: 2026-06-22 13:50:06,451 - INFO - /home/pi/Desktop/images/22062026/13/49/image_22062026_13_50_05_60003.jpg
MAIN: 2026-06-22 13:50:06,451 - INFO - duration: 0.8767223239992745
MAIN: 2026-06-22 13:50:06,452 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 13:51: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-06-22 13:51: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-06-22 13:51:06,119 - INFO - taking picture
MAIN: 2026-06-22 13:51:06,119 - INFO - we take 441 photos in this while loop
MAIN: 2026-06-22 13:51:06,119 - INFO - /home/pi/Desktop/images/22062026/13/50/image_22062026_13_51_05_59669.jpg
MAIN: 2026-06-22 13:51:06,119 - INFO - duration: 0.8748168410020298
MAIN: 2026-06-22 13:51:06,119 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:52:05,136 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:52:05,209 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:52:05,807 - INFO - taking picture
MAIN: 2026-06-22 13:52:05,807 - INFO - we take 442 photos in this while loop
MAIN: 2026-06-22 13:52:05,807 - INFO - /home/pi/Desktop/images/22062026/13/51/image_22062026_13_52_05_59639.jpg
MAIN: 2026-06-22 13:52:05,807 - INFO - duration: 0.9240329930034932
MAIN: 2026-06-22 13:52:05,808 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/52'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:53: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-06-22 13:53: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-06-22 13:53:05,535 - INFO - taking picture
MAIN: 2026-06-22 13:53:05,535 - INFO - we take 443 photos in this while loop
MAIN: 2026-06-22 13:53:05,535 - INFO - /home/pi/Desktop/images/22062026/13/52/image_22062026_13_53_04_59719.jpg
MAIN: 2026-06-22 13:53:05,536 - INFO - duration: 0.9325980869980413
MAIN: 2026-06-22 13:53:05,536 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:54: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-06-22 13:54:05,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-06-22 13:54:06,453 - INFO - taking picture
MAIN: 2026-06-22 13:54:06,453 - INFO - we take 444 photos in this while loop
MAIN: 2026-06-22 13:54:06,453 - INFO - /home/pi/Desktop/images/22062026/13/53/image_22062026_13_54_05_60893.jpg
MAIN: 2026-06-22 13:54:06,453 - INFO - duration: 0.9574256449996028
MAIN: 2026-06-22 13:54:06,454 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/54'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:55:04,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 ! 
MAIN: 2026-06-22 13:55:05,937 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:55:06,601 - INFO - taking picture
MAIN: 2026-06-22 13:55:06,601 - INFO - we take 445 photos in this while loop
MAIN: 2026-06-22 13:55:06,601 - INFO - /home/pi/Desktop/images/22062026/13/54/image_22062026_13_55_05_60190.jpg
MAIN: 2026-06-22 13:55:06,602 - INFO - duration: 0.9152565219992539
MAIN: 2026-06-22 13:55:06,602 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/55'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:56:04,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-06-22 13:56: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-06-22 13:56:05,440 - INFO - taking picture
MAIN: 2026-06-22 13:56:05,440 - INFO - we take 446 photos in this while loop
MAIN: 2026-06-22 13:56:05,440 - INFO - /home/pi/Desktop/images/22062026/13/55/image_22062026_13_56_04_58846.jpg
MAIN: 2026-06-22 13:56:05,440 - INFO - duration: 0.9074023389985086
MAIN: 2026-06-22 13:56:05,440 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:57:05,171 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:57:05,225 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:57:05,889 - INFO - taking picture
MAIN: 2026-06-22 13:57:05,890 - INFO - we take 447 photos in this while loop
MAIN: 2026-06-22 13:57:05,890 - INFO - /home/pi/Desktop/images/22062026/13/56/image_22062026_13_57_05_60399.jpg
MAIN: 2026-06-22 13:57:05,890 - INFO - duration: 0.9576008450021618
MAIN: 2026-06-22 13:57:05,890 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:58:05,247 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 13:58:05,649 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:58:06,309 - INFO - taking picture
MAIN: 2026-06-22 13:58:06,309 - INFO - we take 448 photos in this while loop
MAIN: 2026-06-22 13:58:06,309 - INFO - /home/pi/Desktop/images/22062026/13/57/image_22062026_13_58_05_60505.jpg
MAIN: 2026-06-22 13:58:06,310 - INFO - duration: 0.8717292770015774
MAIN: 2026-06-22 13:58:06,310 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/58'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 13:59: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-06-22 13:59:05,445 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 13:59:06,104 - INFO - taking picture
MAIN: 2026-06-22 13:59:06,104 - INFO - we take 449 photos in this while loop
MAIN: 2026-06-22 13:59:06,104 - INFO - /home/pi/Desktop/images/22062026/13/58/image_22062026_13_59_05_59741.jpg
MAIN: 2026-06-22 13:59:06,104 - INFO - duration: 0.9250469629987492
MAIN: 2026-06-22 13:59:06,105 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/13/59'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:00:04,836 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:00:05,518 - INFO - taking picture
MAIN: 2026-06-22 14:00:05,519 - INFO - we take 450 photos in this while loop
MAIN: 2026-06-22 14:00:05,519 - INFO - /home/pi/Desktop/images/22062026/13/59/image_22062026_14_00_04_59427.jpg
MAIN: 2026-06-22 14:00:05,519 - INFO - duration: 0.9122727140056668
MAIN: 2026-06-22 14:00:05,519 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/00'
MAIN: 2026-06-22 14:00:05,807 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:01:04,917 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:01:05,201 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:01:05,586 - INFO - taking picture
MAIN: 2026-06-22 14:01:05,586 - INFO - we take 451 photos in this while loop
MAIN: 2026-06-22 14:01:05,587 - INFO - /home/pi/Desktop/images/22062026/14/00/image_22062026_14_01_04_60046.jpg
MAIN: 2026-06-22 14:01:05,587 - INFO - duration: 0.9333858930040151
MAIN: 2026-06-22 14:01:05,587 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:02:04,997 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:02: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 ! 
MAIN: 2026-06-22 14:02:05,663 - INFO - taking picture
MAIN: 2026-06-22 14:02:05,663 - INFO - we take 452 photos in this while loop
MAIN: 2026-06-22 14:02:05,664 - INFO - /home/pi/Desktop/images/22062026/14/01/image_22062026_14_02_04_60080.jpg
MAIN: 2026-06-22 14:02:05,664 - INFO - duration: 0.9300970149997738
MAIN: 2026-06-22 14:02:05,665 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:03: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-06-22 14:03:05,411 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:03:05,674 - INFO - taking picture
MAIN: 2026-06-22 14:03:05,674 - INFO - we take 453 photos in this while loop
MAIN: 2026-06-22 14:03:05,674 - INFO - /home/pi/Desktop/images/22062026/14/02/image_22062026_14_03_05_60034.jpg
MAIN: 2026-06-22 14:03:05,674 - INFO - duration: 0.9057731260036235
MAIN: 2026-06-22 14:03:05,675 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:04:05,230 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:04: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 ! 
MAIN: 2026-06-22 14:04:05,939 - INFO - taking picture
MAIN: 2026-06-22 14:04:05,939 - INFO - we take 454 photos in this while loop
MAIN: 2026-06-22 14:04:05,939 - INFO - /home/pi/Desktop/images/22062026/14/03/image_22062026_14_04_05_60191.jpg
MAIN: 2026-06-22 14:04:05,940 - INFO - duration: 0.979219519002072
MAIN: 2026-06-22 14:04:05,940 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:05:05,007 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:05: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-06-22 14:05:06,207 - INFO - taking picture
MAIN: 2026-06-22 14:05:06,207 - INFO - we take 455 photos in this while loop
MAIN: 2026-06-22 14:05:06,207 - INFO - /home/pi/Desktop/images/22062026/14/04/image_22062026_14_05_05_60268.jpg
MAIN: 2026-06-22 14:05:06,207 - INFO - duration: 0.9787643980016583
MAIN: 2026-06-22 14:05:06,208 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:06: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-06-22 14:06:05,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-06-22 14:06:06,346 - INFO - taking picture
MAIN: 2026-06-22 14:06:06,346 - INFO - we take 456 photos in this while loop
MAIN: 2026-06-22 14:06:06,346 - INFO - /home/pi/Desktop/images/22062026/14/05/image_22062026_14_06_05_60239.jpg
MAIN: 2026-06-22 14:06:06,346 - INFO - duration: 0.8785234270035289
MAIN: 2026-06-22 14:06:06,347 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:07:05,129 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:07: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-06-22 14:07:06,372 - INFO - taking picture
MAIN: 2026-06-22 14:07:06,372 - INFO - we take 457 photos in this while loop
MAIN: 2026-06-22 14:07:06,372 - INFO - /home/pi/Desktop/images/22062026/14/06/image_22062026_14_07_05_59965.jpg
MAIN: 2026-06-22 14:07:06,373 - INFO - duration: 0.9387636100000236
MAIN: 2026-06-22 14:07:06,373 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:08:05,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-06-22 14:08:05,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-06-22 14:08:06,611 - INFO - taking picture
MAIN: 2026-06-22 14:08:06,611 - INFO - we take 458 photos in this while loop
MAIN: 2026-06-22 14:08:06,611 - INFO - /home/pi/Desktop/images/22062026/14/07/image_22062026_14_08_05_60218.jpg
MAIN: 2026-06-22 14:08:06,611 - INFO - duration: 0.9592965190022369
MAIN: 2026-06-22 14:08:06,612 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:09: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-06-22 14:09:05,674 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:09:06,337 - INFO - taking picture
MAIN: 2026-06-22 14:09:06,337 - INFO - we take 459 photos in this while loop
MAIN: 2026-06-22 14:09:06,337 - INFO - /home/pi/Desktop/images/22062026/14/08/image_22062026_14_09_05_59759.jpg
MAIN: 2026-06-22 14:09:06,337 - INFO - duration: 0.9259336569957668
MAIN: 2026-06-22 14:09:06,338 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/09'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:10:05,437 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:10:05,608 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:10:06,267 - INFO - taking picture
MAIN: 2026-06-22 14:10:06,267 - INFO - we take 460 photos in this while loop
MAIN: 2026-06-22 14:10:06,267 - INFO - /home/pi/Desktop/images/22062026/14/09/image_22062026_14_10_05_59933.jpg
MAIN: 2026-06-22 14:10:06,267 - INFO - duration: 0.9226986659996328
MAIN: 2026-06-22 14:10:06,268 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/10'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:11:05,065 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:11:05,463 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:11:06,124 - INFO - taking picture
MAIN: 2026-06-22 14:11:06,125 - INFO - we take 461 photos in this while loop
MAIN: 2026-06-22 14:11:06,125 - INFO - /home/pi/Desktop/images/22062026/14/10/image_22062026_14_11_05_59905.jpg
MAIN: 2026-06-22 14:11:06,125 - INFO - duration: 0.8743549459977658
MAIN: 2026-06-22 14:11:06,125 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:12:05,339 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:12:05,502 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:12:06,005 - INFO - taking picture
MAIN: 2026-06-22 14:12:06,005 - INFO - we take 462 photos in this while loop
MAIN: 2026-06-22 14:12:06,005 - INFO - /home/pi/Desktop/images/22062026/14/11/image_22062026_14_12_05_59841.jpg
MAIN: 2026-06-22 14:12:06,005 - INFO - duration: 0.9132906220038421
MAIN: 2026-06-22 14:12:06,005 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14: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-06-22 14:13:05,228 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:13:05,910 - INFO - taking picture
MAIN: 2026-06-22 14:13:05,911 - INFO - we take 463 photos in this while loop
MAIN: 2026-06-22 14:13:05,911 - INFO - /home/pi/Desktop/images/22062026/14/12/image_22062026_14_13_05_59841.jpg
MAIN: 2026-06-22 14:13:05,911 - INFO - duration: 0.97735879800166
MAIN: 2026-06-22 14:13:05,911 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:14: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-06-22 14:14: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 ! 
MAIN: 2026-06-22 14:14:05,969 - INFO - taking picture
MAIN: 2026-06-22 14:14:05,969 - INFO - we take 464 photos in this while loop
MAIN: 2026-06-22 14:14:05,969 - INFO - /home/pi/Desktop/images/22062026/14/13/image_22062026_14_14_05_60072.jpg
MAIN: 2026-06-22 14:14:05,970 - INFO - duration: 0.9633656540027005
MAIN: 2026-06-22 14:14:05,970 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/14'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:15:05,057 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:15:05,262 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:15:06,019 - INFO - taking picture
MAIN: 2026-06-22 14:15:06,019 - INFO - we take 465 photos in this while loop
MAIN: 2026-06-22 14:15:06,019 - INFO - /home/pi/Desktop/images/22062026/14/14/image_22062026_14_15_05_60032.jpg
MAIN: 2026-06-22 14:15:06,019 - INFO - duration: 0.9804110660043079
MAIN: 2026-06-22 14:15:06,019 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:16:05,030 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:16:05,343 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:16:06,051 - INFO - taking picture
MAIN: 2026-06-22 14:16:06,051 - INFO - we take 466 photos in this while loop
MAIN: 2026-06-22 14:16:06,051 - INFO - /home/pi/Desktop/images/22062026/14/15/image_22062026_14_16_05_60074.jpg
MAIN: 2026-06-22 14:16:06,051 - INFO - duration: 0.9379171969994786
MAIN: 2026-06-22 14:16:06,052 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:17:05,303 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:17:05,476 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:17:06,137 - INFO - taking picture
MAIN: 2026-06-22 14:17:06,138 - INFO - we take 467 photos in this while loop
MAIN: 2026-06-22 14:17:06,138 - INFO - /home/pi/Desktop/images/22062026/14/16/image_22062026_14_17_05_60069.jpg
MAIN: 2026-06-22 14:17:06,138 - INFO - duration: 0.9549695690002409
MAIN: 2026-06-22 14:17:06,138 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/17'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:18:05,167 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:18:05,703 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:18:05,835 - INFO - taking picture
MAIN: 2026-06-22 14:18:05,835 - INFO - we take 468 photos in this while loop
MAIN: 2026-06-22 14:18:05,835 - INFO - /home/pi/Desktop/images/22062026/14/17/image_22062026_14_18_05_59718.jpg
MAIN: 2026-06-22 14:18:05,835 - INFO - duration: 0.9335908159991959
MAIN: 2026-06-22 14:18:05,836 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/18'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:19:05,532 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:19: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-06-22 14:19:06,472 - INFO - taking picture
MAIN: 2026-06-22 14:19:06,472 - INFO - we take 469 photos in this while loop
MAIN: 2026-06-22 14:19:06,472 - INFO - /home/pi/Desktop/images/22062026/14/18/image_22062026_14_19_05_60670.jpg
MAIN: 2026-06-22 14:19:06,473 - INFO - duration: 0.9003955020016292
MAIN: 2026-06-22 14:19:06,473 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:20:05,393 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:20: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-06-22 14:20:06,378 - INFO - taking picture
MAIN: 2026-06-22 14:20:06,378 - INFO - we take 470 photos in this while loop
MAIN: 2026-06-22 14:20:06,379 - INFO - /home/pi/Desktop/images/22062026/14/19/image_22062026_14_20_05_59919.jpg
MAIN: 2026-06-22 14:20:06,379 - INFO - duration: 0.8869698249982321
MAIN: 2026-06-22 14:20:06,379 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:21: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-06-22 14:21:05,356 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:21:06,015 - INFO - taking picture
MAIN: 2026-06-22 14:21:06,016 - INFO - we take 471 photos in this while loop
MAIN: 2026-06-22 14:21:06,016 - INFO - /home/pi/Desktop/images/22062026/14/20/image_22062026_14_21_05_59611.jpg
MAIN: 2026-06-22 14:21:06,016 - INFO - duration: 0.9121998129994608
MAIN: 2026-06-22 14:21:06,016 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:22:05,172 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:22:05,680 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:22:05,885 - INFO - taking picture
MAIN: 2026-06-22 14:22:05,886 - INFO - we take 472 photos in this while loop
MAIN: 2026-06-22 14:22:05,886 - INFO - /home/pi/Desktop/images/22062026/14/21/image_22062026_14_22_05_59794.jpg
MAIN: 2026-06-22 14:22:05,886 - INFO - duration: 0.9883109659931506
MAIN: 2026-06-22 14:22:05,886 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/22'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:23:05,331 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:23:05,436 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:23:05,995 - INFO - taking picture
MAIN: 2026-06-22 14:23:05,995 - INFO - we take 473 photos in this while loop
MAIN: 2026-06-22 14:23:05,995 - INFO - /home/pi/Desktop/images/22062026/14/22/image_22062026_14_23_05_60162.jpg
MAIN: 2026-06-22 14:23:05,995 - INFO - duration: 0.9352601740029058
MAIN: 2026-06-22 14:23:05,995 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:24:05,079 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:24:05,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-06-22 14:24:05,741 - INFO - taking picture
MAIN: 2026-06-22 14:24:05,741 - INFO - we take 474 photos in this while loop
MAIN: 2026-06-22 14:24:05,741 - INFO - /home/pi/Desktop/images/22062026/14/23/image_22062026_14_24_05_59771.jpg
MAIN: 2026-06-22 14:24:05,742 - INFO - duration: 0.9099446140025975
MAIN: 2026-06-22 14:24:05,742 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/24'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:25: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-06-22 14:25:05,452 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:25:06,176 - INFO - taking picture
MAIN: 2026-06-22 14:25:06,177 - INFO - we take 475 photos in this while loop
MAIN: 2026-06-22 14:25:06,177 - INFO - /home/pi/Desktop/images/22062026/14/24/image_22062026_14_25_05_60365.jpg
MAIN: 2026-06-22 14:25:06,177 - INFO - duration: 0.9799960349992034
MAIN: 2026-06-22 14:25:06,177 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/25'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:26:05,095 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:26:05,387 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:26:06,047 - INFO - taking picture
MAIN: 2026-06-22 14:26:06,047 - INFO - we take 476 photos in this while loop
MAIN: 2026-06-22 14:26:06,047 - INFO - /home/pi/Desktop/images/22062026/14/25/image_22062026_14_26_05_59960.jpg
MAIN: 2026-06-22 14:26:06,047 - INFO - duration: 0.889985968999099
MAIN: 2026-06-22 14:26:06,048 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:27:04,873 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:27:05,096 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:27:05,540 - INFO - taking picture
MAIN: 2026-06-22 14:27:05,540 - INFO - we take 477 photos in this while loop
MAIN: 2026-06-22 14:27:05,540 - INFO - /home/pi/Desktop/images/22062026/14/26/image_22062026_14_27_04_59447.jpg
MAIN: 2026-06-22 14:27:05,541 - INFO - duration: 0.9362283189984737
MAIN: 2026-06-22 14:27:05,541 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:28: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-06-22 14:28:05,857 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:28:06,565 - INFO - taking picture
MAIN: 2026-06-22 14:28:06,565 - INFO - we take 478 photos in this while loop
MAIN: 2026-06-22 14:28:06,565 - INFO - /home/pi/Desktop/images/22062026/14/27/image_22062026_14_28_05_61024.jpg
MAIN: 2026-06-22 14:28:06,566 - INFO - duration: 0.9366106870002113
MAIN: 2026-06-22 14:28:06,566 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:29: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-06-22 14:29:05,486 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:29:05,488 - INFO - taking picture
MAIN: 2026-06-22 14:29:05,488 - INFO - we take 479 photos in this while loop
MAIN: 2026-06-22 14:29:05,489 - INFO - /home/pi/Desktop/images/22062026/14/28/image_22062026_14_29_04_58937.jpg
MAIN: 2026-06-22 14:29:05,489 - INFO - duration: 0.9219351479987381
MAIN: 2026-06-22 14:29:05,489 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:30:05,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-06-22 14:30:05,817 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:30:06,399 - INFO - taking picture
MAIN: 2026-06-22 14:30:06,399 - INFO - we take 480 photos in this while loop
MAIN: 2026-06-22 14:30:06,399 - INFO - /home/pi/Desktop/images/22062026/14/29/image_22062026_14_30_05_60863.jpg
MAIN: 2026-06-22 14:30:06,399 - INFO - duration: 0.9691255990037462
MAIN: 2026-06-22 14:30:06,399 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/30'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:31:05,417 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:31: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-06-22 14:31:06,475 - INFO - taking picture
MAIN: 2026-06-22 14:31:06,476 - INFO - we take 481 photos in this while loop
MAIN: 2026-06-22 14:31:06,476 - INFO - /home/pi/Desktop/images/22062026/14/30/image_22062026_14_31_05_60095.jpg
MAIN: 2026-06-22 14:31:06,476 - INFO - duration: 0.9509362199969473
MAIN: 2026-06-22 14:31:06,476 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:32:04,989 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:32:05,818 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:32:06,477 - INFO - taking picture
MAIN: 2026-06-22 14:32:06,477 - INFO - we take 482 photos in this while loop
MAIN: 2026-06-22 14:32:06,477 - INFO - /home/pi/Desktop/images/22062026/14/31/image_22062026_14_32_05_60022.jpg
MAIN: 2026-06-22 14:32:06,477 - INFO - duration: 0.9294564230003743
MAIN: 2026-06-22 14:32:06,478 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:33:04,976 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:33:05,773 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:33:06,431 - INFO - taking picture
MAIN: 2026-06-22 14:33:06,432 - INFO - we take 483 photos in this while loop
MAIN: 2026-06-22 14:33:06,432 - INFO - /home/pi/Desktop/images/22062026/14/32/image_22062026_14_33_05_59946.jpg
MAIN: 2026-06-22 14:33:06,432 - INFO - duration: 0.937925931000791
MAIN: 2026-06-22 14:33:06,432 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:34: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-06-22 14:34: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-06-22 14:34:06,387 - INFO - taking picture
MAIN: 2026-06-22 14:34:06,387 - INFO - we take 484 photos in this while loop
MAIN: 2026-06-22 14:34:06,387 - INFO - /home/pi/Desktop/images/22062026/14/33/image_22062026_14_34_05_60000.jpg
MAIN: 2026-06-22 14:34:06,388 - INFO - duration: 0.892963227997825
MAIN: 2026-06-22 14:34:06,388 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/34'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:35:05,479 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:35:05,782 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:35:06,487 - INFO - taking picture
MAIN: 2026-06-22 14:35:06,487 - INFO - we take 485 photos in this while loop
MAIN: 2026-06-22 14:35:06,487 - INFO - /home/pi/Desktop/images/22062026/14/34/image_22062026_14_35_05_60059.jpg
MAIN: 2026-06-22 14:35:06,487 - INFO - duration: 0.9336103629975696
MAIN: 2026-06-22 14:35:06,488 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/35'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:36:04,965 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:36:05,623 - INFO - taking picture
MAIN: 2026-06-22 14:36:05,623 - INFO - we take 486 photos in this while loop
MAIN: 2026-06-22 14:36:05,623 - INFO - /home/pi/Desktop/images/22062026/14/35/image_22062026_14_36_04_59188.jpg
MAIN: 2026-06-22 14:36:05,623 - INFO - duration: 0.8805316970028798
MAIN: 2026-06-22 14:36:05,623 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/36'
MAIN: 2026-06-22 14:36:05,735 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:37:04,910 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:37:05,567 - INFO - taking picture
MAIN: 2026-06-22 14:37:05,568 - INFO - we take 487 photos in this while loop
MAIN: 2026-06-22 14:37:05,568 - INFO - /home/pi/Desktop/images/22062026/14/36/image_22062026_14_37_04_59917.jpg
MAIN: 2026-06-22 14:37:05,568 - INFO - duration: 0.9073365180011024
MAIN: 2026-06-22 14:37:05,568 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/37'
MAIN: 2026-06-22 14:37:05,847 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:38:04,940 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:38:05,600 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:38:06,291 - INFO - taking picture
MAIN: 2026-06-22 14:38:06,292 - INFO - we take 488 photos in this while loop
MAIN: 2026-06-22 14:38:06,292 - INFO - /home/pi/Desktop/images/22062026/14/37/image_22062026_14_38_05_60724.jpg
MAIN: 2026-06-22 14:38:06,292 - INFO - duration: 0.9066008759982651
MAIN: 2026-06-22 14:38:06,292 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/38'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:39:04,908 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:39:05,334 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:39:05,993 - INFO - taking picture
MAIN: 2026-06-22 14:39:05,993 - INFO - we take 489 photos in this while loop
MAIN: 2026-06-22 14:39:05,994 - INFO - /home/pi/Desktop/images/22062026/14/38/image_22062026_14_39_05_59736.jpg
MAIN: 2026-06-22 14:39:05,994 - INFO - duration: 0.8715699890017277
MAIN: 2026-06-22 14:39:05,994 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/39'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:40: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-06-22 14:40:05,670 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:40:05,709 - INFO - taking picture
MAIN: 2026-06-22 14:40:05,709 - INFO - we take 490 photos in this while loop
MAIN: 2026-06-22 14:40:05,709 - INFO - /home/pi/Desktop/images/22062026/14/39/image_22062026_14_40_05_59670.jpg
MAIN: 2026-06-22 14:40:05,710 - INFO - duration: 0.9166016970048076
MAIN: 2026-06-22 14:40:05,710 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:41:05,437 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:41:05,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-06-22 14:41:06,587 - INFO - taking picture
MAIN: 2026-06-22 14:41:06,588 - INFO - we take 491 photos in this while loop
MAIN: 2026-06-22 14:41:06,588 - INFO - /home/pi/Desktop/images/22062026/14/40/image_22062026_14_41_05_60876.jpg
MAIN: 2026-06-22 14:41:06,588 - INFO - duration: 0.9185032240056898
MAIN: 2026-06-22 14:41:06,588 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:42:05,660 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:42:05,698 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:42:06,327 - INFO - taking picture
MAIN: 2026-06-22 14:42:06,328 - INFO - we take 492 photos in this while loop
MAIN: 2026-06-22 14:42:06,328 - INFO - /home/pi/Desktop/images/22062026/14/41/image_22062026_14_42_05_59716.jpg
MAIN: 2026-06-22 14:42:06,328 - INFO - duration: 0.9416722070018295
MAIN: 2026-06-22 14:42:06,328 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:43:05,374 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:43:05,610 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:43:06,098 - INFO - taking picture
MAIN: 2026-06-22 14:43:06,099 - INFO - we take 493 photos in this while loop
MAIN: 2026-06-22 14:43:06,099 - INFO - /home/pi/Desktop/images/22062026/14/42/image_22062026_14_43_05_59714.jpg
MAIN: 2026-06-22 14:43:06,099 - INFO - duration: 0.9986539399978938
MAIN: 2026-06-22 14:43:06,099 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:44:04,965 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:44:05,297 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:44:05,954 - INFO - taking picture
MAIN: 2026-06-22 14:44:05,954 - INFO - we take 494 photos in this while loop
MAIN: 2026-06-22 14:44:05,955 - INFO - /home/pi/Desktop/images/22062026/14/43/image_22062026_14_44_05_59971.jpg
MAIN: 2026-06-22 14:44:05,955 - INFO - duration: 0.8823946639968199
MAIN: 2026-06-22 14:44:05,955 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/44'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:45: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-06-22 14:45:05,141 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:45:05,665 - INFO - taking picture
MAIN: 2026-06-22 14:45:05,665 - INFO - we take 495 photos in this while loop
MAIN: 2026-06-22 14:45:05,665 - INFO - /home/pi/Desktop/images/22062026/14/44/image_22062026_14_45_04_59692.jpg
MAIN: 2026-06-22 14:45:05,665 - INFO - duration: 0.900215345005563
MAIN: 2026-06-22 14:45:05,666 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:46:04,934 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:46:05,139 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:46:05,600 - INFO - taking picture
MAIN: 2026-06-22 14:46:05,601 - INFO - we take 496 photos in this while loop
MAIN: 2026-06-22 14:46:05,601 - INFO - /home/pi/Desktop/images/22062026/14/45/image_22062026_14_46_04_59906.jpg
MAIN: 2026-06-22 14:46:05,601 - INFO - duration: 0.928770488993905
MAIN: 2026-06-22 14:46:05,601 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:47:05,141 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:47:05,707 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:47:06,365 - INFO - taking picture
MAIN: 2026-06-22 14:47:06,365 - INFO - we take 497 photos in this while loop
MAIN: 2026-06-22 14:47:06,366 - INFO - /home/pi/Desktop/images/22062026/14/46/image_22062026_14_47_05_60823.jpg
MAIN: 2026-06-22 14:47:06,366 - INFO - duration: 0.8697505759992055
MAIN: 2026-06-22 14:47:06,366 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:48:05,414 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:48: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-06-22 14:48:06,079 - INFO - taking picture
MAIN: 2026-06-22 14:48:06,080 - INFO - we take 498 photos in this while loop
MAIN: 2026-06-22 14:48:06,080 - INFO - /home/pi/Desktop/images/22062026/14/47/image_22062026_14_48_05_59655.jpg
MAIN: 2026-06-22 14:48:06,080 - INFO - duration: 0.9280370620035683
MAIN: 2026-06-22 14:48:06,080 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:49:05,138 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:49:05,564 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:49:05,806 - INFO - taking picture
MAIN: 2026-06-22 14:49:05,806 - INFO - we take 499 photos in this while loop
MAIN: 2026-06-22 14:49:05,806 - INFO - /home/pi/Desktop/images/22062026/14/48/image_22062026_14_49_05_59726.jpg
MAIN: 2026-06-22 14:49:05,806 - INFO - duration: 0.9283076270003221
MAIN: 2026-06-22 14:49:05,807 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:50:04,837 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:50:05,281 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:50:05,521 - INFO - taking picture
MAIN: 2026-06-22 14:50:05,522 - INFO - we take 500 photos in this while loop
MAIN: 2026-06-22 14:50:05,522 - INFO - /home/pi/Desktop/images/22062026/14/49/image_22062026_14_50_04_59730.jpg
MAIN: 2026-06-22 14:50:05,522 - INFO - duration: 0.913300642001559
MAIN: 2026-06-22 14:50:05,522 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/50'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:51: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-06-22 14:51:05,721 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:51:06,380 - INFO - taking picture
MAIN: 2026-06-22 14:51:06,381 - INFO - we take 501 photos in this while loop
MAIN: 2026-06-22 14:51:06,381 - INFO - /home/pi/Desktop/images/22062026/14/50/image_22062026_14_51_05_60870.jpg
MAIN: 2026-06-22 14:51:06,381 - INFO - duration: 0.9016528770007426
MAIN: 2026-06-22 14:51:06,381 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:52:05,348 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:52:05,420 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:52:06,127 - INFO - taking picture
MAIN: 2026-06-22 14:52:06,128 - INFO - we take 502 photos in this while loop
MAIN: 2026-06-22 14:52:06,128 - INFO - /home/pi/Desktop/images/22062026/14/51/image_22062026_14_52_05_59669.jpg
MAIN: 2026-06-22 14:52:06,128 - INFO - duration: 0.9790622080035973
MAIN: 2026-06-22 14:52:06,128 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/52'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:53: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-06-22 14:53:05,522 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:53:05,854 - INFO - taking picture
MAIN: 2026-06-22 14:53:05,855 - INFO - we take 503 photos in this while loop
MAIN: 2026-06-22 14:53:05,855 - INFO - /home/pi/Desktop/images/22062026/14/52/image_22062026_14_53_05_59736.jpg
MAIN: 2026-06-22 14:53:05,855 - INFO - duration: 0.9693138110014843
MAIN: 2026-06-22 14:53:05,855 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:54:05,055 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:54:05,714 - INFO - taking picture
MAIN: 2026-06-22 14:54:05,714 - INFO - we take 504 photos in this while loop
MAIN: 2026-06-22 14:54:05,714 - INFO - /home/pi/Desktop/images/22062026/14/53/image_22062026_14_54_05_59907.jpg
MAIN: 2026-06-22 14:54:05,715 - INFO - duration: 0.9215218870012905
MAIN: 2026-06-22 14:54:05,715 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/54'
MAIN: 2026-06-22 14:54:05,757 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:55: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

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:55:05,524 - INFO - taking picture
MAIN: 2026-06-22 14:55:05,524 - INFO - we take 505 photos in this while loop
MAIN: 2026-06-22 14:55:05,524 - INFO - /home/pi/Desktop/images/22062026/14/54/image_22062026_14_55_04_59781.jpg
MAIN: 2026-06-22 14:55:05,525 - INFO - duration: 0.9497598300004029
MAIN: 2026-06-22 14:55:05,525 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/55'
MAIN: 2026-06-22 14:55: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:56: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-06-22 14:56:05,766 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:56:06,503 - INFO - taking picture
MAIN: 2026-06-22 14:56:06,503 - INFO - we take 506 photos in this while loop
MAIN: 2026-06-22 14:56:06,503 - INFO - /home/pi/Desktop/images/22062026/14/55/image_22062026_14_56_05_60979.jpg
MAIN: 2026-06-22 14:56:06,504 - INFO - duration: 0.9492101360010565
MAIN: 2026-06-22 14:56:06,504 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:57: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-06-22 14:57: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-06-22 14:57:06,414 - INFO - taking picture
MAIN: 2026-06-22 14:57:06,414 - INFO - we take 507 photos in this while loop
MAIN: 2026-06-22 14:57:06,415 - INFO - /home/pi/Desktop/images/22062026/14/56/image_22062026_14_57_05_59946.jpg
MAIN: 2026-06-22 14:57:06,415 - INFO - duration: 0.9135291889979271
MAIN: 2026-06-22 14:57:06,415 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 14:58:05,289 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:58: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-06-22 14:58:05,957 - INFO - taking picture
MAIN: 2026-06-22 14:58:05,957 - INFO - we take 508 photos in this while loop
MAIN: 2026-06-22 14:58:05,958 - INFO - /home/pi/Desktop/images/22062026/14/57/image_22062026_14_58_05_59525.jpg
MAIN: 2026-06-22 14:58:05,958 - INFO - duration: 0.9313284890013165
MAIN: 2026-06-22 14:58:05,958 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 14:59:05,000 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 14:59:05,142 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 14:59:05,708 - INFO - taking picture
MAIN: 2026-06-22 14:59:05,708 - INFO - we take 509 photos in this while loop
MAIN: 2026-06-22 14:59:05,708 - INFO - /home/pi/Desktop/images/22062026/14/58/image_22062026_14_59_05_59729.jpg
MAIN: 2026-06-22 14:59:05,708 - INFO - duration: 0.9522284839986241
MAIN: 2026-06-22 14:59:05,709 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/14/59'
MAIN: 2026-06-22 15:00: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

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:00:05,563 - INFO - taking picture
MAIN: 2026-06-22 15:00:05,563 - INFO - we take 510 photos in this while loop
MAIN: 2026-06-22 15:00:05,563 - INFO - /home/pi/Desktop/images/22062026/14/59/image_22062026_15_00_04_59873.jpg
MAIN: 2026-06-22 15:00:05,564 - INFO - duration: 0.9336106379996636
MAIN: 2026-06-22 15:00:05,564 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/00'
MAIN: 2026-06-22 15:00:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:01:04,776 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:01: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-06-22 15:01:06,453 - INFO - taking picture
MAIN: 2026-06-22 15:01:06,454 - INFO - we take 511 photos in this while loop
MAIN: 2026-06-22 15:01:06,454 - INFO - /home/pi/Desktop/images/22062026/15/00/image_22062026_15_01_05_60889.jpg
MAIN: 2026-06-22 15:01:06,454 - INFO - duration: 0.9346520159961074
MAIN: 2026-06-22 15:01:06,454 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:02:05,257 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:02:05,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-06-22 15:02:06,369 - INFO - taking picture
MAIN: 2026-06-22 15:02:06,369 - INFO - we take 512 photos in this while loop
MAIN: 2026-06-22 15:02:06,370 - INFO - /home/pi/Desktop/images/22062026/15/01/image_22062026_15_02_05_59980.jpg
MAIN: 2026-06-22 15:02:06,370 - INFO - duration: 0.8699386150037753
MAIN: 2026-06-22 15:02:06,370 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/02'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:03: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-06-22 15:03: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-06-22 15:03:05,962 - INFO - taking picture
MAIN: 2026-06-22 15:03:05,963 - INFO - we take 513 photos in this while loop
MAIN: 2026-06-22 15:03:05,963 - INFO - /home/pi/Desktop/images/22062026/15/02/image_22062026_15_03_05_59471.jpg
MAIN: 2026-06-22 15:03:05,963 - INFO - duration: 0.9913860270025907
MAIN: 2026-06-22 15:03:05,963 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:04: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-06-22 15:04: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-06-22 15:04:06,164 - INFO - taking picture
MAIN: 2026-06-22 15:04:06,165 - INFO - we take 514 photos in this while loop
MAIN: 2026-06-22 15:04:06,165 - INFO - /home/pi/Desktop/images/22062026/15/03/image_22062026_15_04_05_60212.jpg
MAIN: 2026-06-22 15:04:06,165 - INFO - duration: 0.9811841289993026
MAIN: 2026-06-22 15:04:06,165 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/04'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:05: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-06-22 15:05:05,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-06-22 15:05:05,966 - INFO - taking picture
MAIN: 2026-06-22 15:05:05,966 - INFO - we take 515 photos in this while loop
MAIN: 2026-06-22 15:05:05,966 - INFO - /home/pi/Desktop/images/22062026/15/04/image_22062026_15_05_05_59838.jpg
MAIN: 2026-06-22 15:05:05,967 - INFO - duration: 0.944599387999915
MAIN: 2026-06-22 15:05:05,967 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:06:05,028 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:06:05,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-06-22 15:06:05,694 - INFO - taking picture
MAIN: 2026-06-22 15:06:05,694 - INFO - we take 516 photos in this while loop
MAIN: 2026-06-22 15:06:05,694 - INFO - /home/pi/Desktop/images/22062026/15/05/image_22062026_15_06_05_59746.jpg
MAIN: 2026-06-22 15:06:05,694 - INFO - duration: 0.9261201549961697
MAIN: 2026-06-22 15:06:05,695 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 15:07: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-06-22 15:07:05,698 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:07:06,406 - INFO - taking picture
MAIN: 2026-06-22 15:07:06,406 - INFO - we take 517 photos in this while loop
MAIN: 2026-06-22 15:07:06,406 - INFO - /home/pi/Desktop/images/22062026/15/06/image_22062026_15_07_05_60658.jpg
MAIN: 2026-06-22 15:07:06,406 - INFO - duration: 0.9794052649958758
MAIN: 2026-06-22 15:07:06,406 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 15:08:05,026 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:08:05,505 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:08:06,162 - INFO - taking picture
MAIN: 2026-06-22 15:08:06,162 - INFO - we take 518 photos in this while loop
MAIN: 2026-06-22 15:08:06,162 - INFO - /home/pi/Desktop/images/22062026/15/07/image_22062026_15_08_05_59863.jpg
MAIN: 2026-06-22 15:08:06,162 - INFO - duration: 0.8720620290041552
MAIN: 2026-06-22 15:08:06,163 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/08'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:09:04,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-06-22 15: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-06-22 15:09:05,669 - INFO - taking picture
MAIN: 2026-06-22 15:09:05,670 - INFO - we take 519 photos in this while loop
MAIN: 2026-06-22 15:09:05,670 - INFO - /home/pi/Desktop/images/22062026/15/08/image_22062026_15_09_05_59503.jpg
MAIN: 2026-06-22 15:09:05,670 - INFO - duration: 0.8764696610014653
MAIN: 2026-06-22 15:09:05,670 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/09'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:10:05,150 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:10: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-06-22 15:10:05,826 - INFO - taking picture
MAIN: 2026-06-22 15:10:05,826 - INFO - we take 520 photos in this while loop
MAIN: 2026-06-22 15:10:05,826 - INFO - /home/pi/Desktop/images/22062026/15/09/image_22062026_15_10_05_60131.jpg
MAIN: 2026-06-22 15:10:05,826 - INFO - duration: 0.9010920340006123
MAIN: 2026-06-22 15:10:05,826 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/10'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:11:04,802 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:11:05,289 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:11:05,509 - INFO - taking picture
MAIN: 2026-06-22 15:11:05,509 - INFO - we take 521 photos in this while loop
MAIN: 2026-06-22 15:11:05,509 - INFO - /home/pi/Desktop/images/22062026/15/10/image_22062026_15_11_04_59587.jpg
MAIN: 2026-06-22 15:11:05,509 - INFO - duration: 0.9970659449973027
MAIN: 2026-06-22 15:11:05,510 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:12:05,427 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:12:05,840 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:12:06,498 - INFO - taking picture
MAIN: 2026-06-22 15:12:06,498 - INFO - we take 522 photos in this while loop
MAIN: 2026-06-22 15:12:06,498 - INFO - /home/pi/Desktop/images/22062026/15/11/image_22062026_15_12_05_61115.jpg
MAIN: 2026-06-22 15:12:06,499 - INFO - duration: 0.8710040520018083
MAIN: 2026-06-22 15:12:06,499 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:13:05,239 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:13:05,373 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:13:05,905 - INFO - taking picture
MAIN: 2026-06-22 15:13:05,905 - INFO - we take 523 photos in this while loop
MAIN: 2026-06-22 15:13:05,905 - INFO - /home/pi/Desktop/images/22062026/15/12/image_22062026_15_13_05_59347.jpg
MAIN: 2026-06-22 15:13:05,906 - INFO - duration: 0.9300541909979074
MAIN: 2026-06-22 15:13:05,906 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:14:04,940 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:14:05,597 - INFO - taking picture
MAIN: 2026-06-22 15:14:05,597 - INFO - we take 524 photos in this while loop
MAIN: 2026-06-22 15:14:05,597 - INFO - /home/pi/Desktop/images/22062026/15/13/image_22062026_15_14_04_59703.jpg
MAIN: 2026-06-22 15:14:05,597 - INFO - duration: 0.9178443999990122
MAIN: 2026-06-22 15:14:05,598 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/14'
MAIN: 2026-06-22 15:14:05,886 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:15:05,738 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:15:05,906 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:15:06,408 - INFO - taking picture
MAIN: 2026-06-22 15:15:06,408 - INFO - we take 525 photos in this while loop
MAIN: 2026-06-22 15:15:06,409 - INFO - /home/pi/Desktop/images/22062026/15/14/image_22062026_15_15_05_60845.jpg
MAIN: 2026-06-22 15:15:06,409 - INFO - duration: 0.8832867669989355
MAIN: 2026-06-22 15:15:06,409 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/15'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:16:05,021 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:16:05,530 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:16:06,188 - INFO - taking picture
MAIN: 2026-06-22 15:16:06,189 - INFO - we take 526 photos in this while loop
MAIN: 2026-06-22 15:16:06,189 - INFO - /home/pi/Desktop/images/22062026/15/15/image_22062026_15_16_05_59793.jpg
MAIN: 2026-06-22 15:16:06,189 - INFO - duration: 0.8700990620054654
MAIN: 2026-06-22 15:16:06,189 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/16'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15: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-06-22 15:17:05,025 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:17:05,687 - INFO - taking picture
MAIN: 2026-06-22 15:17:05,687 - INFO - we take 527 photos in this while loop
MAIN: 2026-06-22 15:17:05,687 - INFO - /home/pi/Desktop/images/22062026/15/16/image_22062026_15_17_05_59410.jpg
MAIN: 2026-06-22 15:17:05,688 - INFO - duration: 0.9583530599993537
MAIN: 2026-06-22 15:17:05,688 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 15:18:04,791 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:18:05,450 - INFO - taking picture
MAIN: 2026-06-22 15:18:05,450 - INFO - we take 528 photos in this while loop
MAIN: 2026-06-22 15:18:05,451 - INFO - /home/pi/Desktop/images/22062026/15/17/image_22062026_15_18_04_59805.jpg
MAIN: 2026-06-22 15:18:05,451 - INFO - duration: 0.9163197129964828
MAIN: 2026-06-22 15:18:05,451 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/18'
MAIN: 2026-06-22 15:18: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:19: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-06-22 15:19:05,427 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:19:06,109 - INFO - taking picture
MAIN: 2026-06-22 15:19:06,109 - INFO - we take 529 photos in this while loop
MAIN: 2026-06-22 15:19:06,109 - INFO - /home/pi/Desktop/images/22062026/15/18/image_22062026_15_19_05_60605.jpg
MAIN: 2026-06-22 15:19:06,110 - INFO - duration: 0.9699030809933902
MAIN: 2026-06-22 15:19:06,110 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:20:05,278 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:20:05,964 - INFO - taking picture
MAIN: 2026-06-22 15:20:05,964 - INFO - we take 530 photos in this while loop
MAIN: 2026-06-22 15:20:05,964 - INFO - /home/pi/Desktop/images/22062026/15/19/image_22062026_15_20_05_59909.jpg
MAIN: 2026-06-22 15:20:05,964 - INFO - duration: 0.9146077440018416
MAIN: 2026-06-22 15:20:05,965 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/20'
MAIN: 2026-06-22 15:20:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:21:04,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 ! 
MAIN: 2026-06-22 15:21: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-06-22 15:21:06,133 - INFO - taking picture
MAIN: 2026-06-22 15:21:06,134 - INFO - we take 531 photos in this while loop
MAIN: 2026-06-22 15:21:06,134 - INFO - /home/pi/Desktop/images/22062026/15/20/image_22062026_15_21_05_60165.jpg
MAIN: 2026-06-22 15:21:06,134 - INFO - duration: 0.9191921099991305
MAIN: 2026-06-22 15:21:06,134 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:22:04,980 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:22: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-06-22 15:22:05,662 - INFO - taking picture
MAIN: 2026-06-22 15:22:05,662 - INFO - we take 532 photos in this while loop
MAIN: 2026-06-22 15:22:05,662 - INFO - /home/pi/Desktop/images/22062026/15/21/image_22062026_15_22_04_59500.jpg
MAIN: 2026-06-22 15:22:05,662 - INFO - duration: 0.9473105099968961
MAIN: 2026-06-22 15:22:05,663 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/22'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:23:05,262 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:23:05,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

MAIN: 2026-06-22 15:23:06,528 - INFO - taking picture
MAIN: 2026-06-22 15:23:06,528 - INFO - we take 533 photos in this while loop
MAIN: 2026-06-22 15:23:06,528 - INFO - /home/pi/Desktop/images/22062026/15/22/image_22062026_15_23_05_60891.jpg
MAIN: 2026-06-22 15:23:06,528 - INFO - duration: 0.9218519749992993
MAIN: 2026-06-22 15:23:06,529 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/23'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:24: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-06-22 15:24:05,458 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:24:06,050 - INFO - taking picture
MAIN: 2026-06-22 15:24:06,050 - INFO - we take 534 photos in this while loop
MAIN: 2026-06-22 15:24:06,050 - INFO - /home/pi/Desktop/images/22062026/15/23/image_22062026_15_24_05_59523.jpg
MAIN: 2026-06-22 15:24:06,050 - INFO - duration: 0.9204863560007652
MAIN: 2026-06-22 15:24:06,051 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/24'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:25: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-06-22 15:25:05,764 - INFO - taking picture
MAIN: 2026-06-22 15:25:05,765 - INFO - we take 535 photos in this while loop
MAIN: 2026-06-22 15:25:05,765 - INFO - /home/pi/Desktop/images/22062026/15/24/image_22062026_15_25_05_59720.jpg
MAIN: 2026-06-22 15:25:05,765 - INFO - duration: 0.9149744589958573
MAIN: 2026-06-22 15:25:05,765 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/25'
MAIN: 2026-06-22 15:25:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:26:04,777 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:26: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-06-22 15:26:05,502 - INFO - taking picture
MAIN: 2026-06-22 15:26:05,502 - INFO - we take 536 photos in this while loop
MAIN: 2026-06-22 15:26:05,502 - INFO - /home/pi/Desktop/images/22062026/15/25/image_22062026_15_26_04_59660.jpg
MAIN: 2026-06-22 15:26:05,503 - INFO - duration: 0.9926129930026946
MAIN: 2026-06-22 15:26:05,503 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:27:05,039 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:27: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-06-22 15:27:06,470 - INFO - taking picture
MAIN: 2026-06-22 15:27:06,470 - INFO - we take 537 photos in this while loop
MAIN: 2026-06-22 15:27:06,470 - INFO - /home/pi/Desktop/images/22062026/15/26/image_22062026_15_27_05_61050.jpg
MAIN: 2026-06-22 15:27:06,470 - INFO - duration: 0.9096605759987142
MAIN: 2026-06-22 15:27:06,471 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:28: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-06-22 15:28:05,593 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:28:06,192 - INFO - taking picture
MAIN: 2026-06-22 15:28:06,193 - INFO - we take 538 photos in this while loop
MAIN: 2026-06-22 15:28:06,193 - INFO - /home/pi/Desktop/images/22062026/15/27/image_22062026_15_28_05_59659.jpg
MAIN: 2026-06-22 15:28:06,193 - INFO - duration: 0.9731158979993779
MAIN: 2026-06-22 15:28:06,194 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/28'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:29: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-06-22 15:29:05,437 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:29:05,977 - INFO - taking picture
MAIN: 2026-06-22 15:29:05,977 - INFO - we take 539 photos in this while loop
MAIN: 2026-06-22 15:29:05,977 - INFO - /home/pi/Desktop/images/22062026/15/28/image_22062026_15_29_05_59812.jpg
MAIN: 2026-06-22 15:29:05,977 - INFO - duration: 0.9449220649985364
MAIN: 2026-06-22 15:29:05,978 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/29'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:30:05,131 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:30:05,822 - INFO - taking picture
MAIN: 2026-06-22 15:30:05,822 - INFO - we take 540 photos in this while loop
MAIN: 2026-06-22 15:30:05,822 - INFO - /home/pi/Desktop/images/22062026/15/29/image_22062026_15_30_05_59852.jpg
MAIN: 2026-06-22 15:30:05,822 - INFO - duration: 0.9376222549981321
MAIN: 2026-06-22 15:30:05,823 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/30'
MAIN: 2026-06-22 15:30:06,052 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:31:04,792 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:31:05,490 - INFO - taking picture
MAIN: 2026-06-22 15:31:05,490 - INFO - we take 541 photos in this while loop
MAIN: 2026-06-22 15:31:05,490 - INFO - /home/pi/Desktop/images/22062026/15/30/image_22062026_15_31_04_59678.jpg
MAIN: 2026-06-22 15:31:05,491 - INFO - duration: 0.926835342994309
MAIN: 2026-06-22 15:31:05,491 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/31'
MAIN: 2026-06-22 15:31:05,796 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:32:05,085 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:32:05,660 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:32:06,351 - INFO - taking picture
MAIN: 2026-06-22 15:32:06,352 - INFO - we take 542 photos in this while loop
MAIN: 2026-06-22 15:32:06,352 - INFO - /home/pi/Desktop/images/22062026/15/31/image_22062026_15_32_05_60884.jpg
MAIN: 2026-06-22 15:32:06,352 - INFO - duration: 0.9040224850032246
MAIN: 2026-06-22 15:32:06,352 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:33:05,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-06-22 15:33:05,122 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:33:05,784 - INFO - taking picture
MAIN: 2026-06-22 15:33:05,784 - INFO - we take 543 photos in this while loop
MAIN: 2026-06-22 15:33:05,784 - INFO - /home/pi/Desktop/images/22062026/15/32/image_22062026_15_33_05_59406.jpg
MAIN: 2026-06-22 15:33:05,784 - INFO - duration: 0.9300087100054952
MAIN: 2026-06-22 15:33:05,785 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:34:05,258 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:34:05,926 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:34:06,617 - INFO - taking picture
MAIN: 2026-06-22 15:34:06,617 - INFO - we take 544 photos in this while loop
MAIN: 2026-06-22 15:34:06,617 - INFO - /home/pi/Desktop/images/22062026/15/33/image_22062026_15_34_05_60854.jpg
MAIN: 2026-06-22 15:34:06,618 - INFO - duration: 0.9084793869988061
MAIN: 2026-06-22 15:34:06,618 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 15:35: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-06-22 15:35:05,918 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:35:06,626 - INFO - taking picture
MAIN: 2026-06-22 15:35:06,626 - INFO - we take 545 photos in this while loop
MAIN: 2026-06-22 15:35:06,626 - INFO - /home/pi/Desktop/images/22062026/15/34/image_22062026_15_35_05_59915.jpg
MAIN: 2026-06-22 15:35:06,626 - INFO - duration: 1.001938624001923
MAIN: 2026-06-22 15:35:06,627 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 15:36: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-06-22 15:36:05,826 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:36:06,483 - INFO - taking picture
MAIN: 2026-06-22 15:36:06,484 - INFO - we take 546 photos in this while loop
MAIN: 2026-06-22 15:36:06,484 - INFO - /home/pi/Desktop/images/22062026/15/35/image_22062026_15_36_05_59985.jpg
MAIN: 2026-06-22 15:36:06,484 - INFO - duration: 0.8745194250004715
MAIN: 2026-06-22 15:36:06,484 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/36'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:37:05,260 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:37:05,645 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:37:05,980 - INFO - taking picture
MAIN: 2026-06-22 15:37:05,980 - INFO - we take 547 photos in this while loop
MAIN: 2026-06-22 15:37:05,980 - INFO - /home/pi/Desktop/images/22062026/15/36/image_22062026_15_37_05_59382.jpg
MAIN: 2026-06-22 15:37:05,980 - INFO - duration: 0.9879891079981462
MAIN: 2026-06-22 15:37:05,980 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:38:05,059 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:38:05,763 - INFO - taking picture
MAIN: 2026-06-22 15:38:05,763 - INFO - we take 548 photos in this while loop
MAIN: 2026-06-22 15:38:05,763 - INFO - /home/pi/Desktop/images/22062026/15/37/image_22062026_15_38_05_59807.jpg
MAIN: 2026-06-22 15:38:05,764 - INFO - duration: 0.9641316650013323
MAIN: 2026-06-22 15:38:05,764 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/38'
MAIN: 2026-06-22 15:38: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-06-22 15:39:04,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 ! 
MAIN: 2026-06-22 15:39:05,911 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:39:06,570 - INFO - taking picture
MAIN: 2026-06-22 15:39:06,570 - INFO - we take 549 photos in this while loop
MAIN: 2026-06-22 15:39:06,571 - INFO - /home/pi/Desktop/images/22062026/15/38/image_22062026_15_39_05_60832.jpg
MAIN: 2026-06-22 15:39:06,571 - INFO - duration: 0.9387532610053313
MAIN: 2026-06-22 15:39:06,571 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 15:40:05,623 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:40:05,649 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:40:06,315 - INFO - taking picture
MAIN: 2026-06-22 15:40:06,315 - INFO - we take 550 photos in this while loop
MAIN: 2026-06-22 15:40:06,315 - INFO - /home/pi/Desktop/images/22062026/15/39/image_22062026_15_40_05_59793.jpg
MAIN: 2026-06-22 15:40:06,316 - INFO - duration: 0.890299099002732
MAIN: 2026-06-22 15:40:06,316 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 15:41: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-06-22 15:41:05,132 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:41:05,842 - INFO - taking picture
MAIN: 2026-06-22 15:41:05,843 - INFO - we take 551 photos in this while loop
MAIN: 2026-06-22 15:41:05,843 - INFO - /home/pi/Desktop/images/22062026/15/40/image_22062026_15_41_05_59433.jpg
MAIN: 2026-06-22 15:41:05,843 - INFO - duration: 0.9836187820037594
MAIN: 2026-06-22 15:41:05,843 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:42:04,945 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:42: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-06-22 15:42:05,612 - INFO - taking picture
MAIN: 2026-06-22 15:42:05,612 - INFO - we take 552 photos in this while loop
MAIN: 2026-06-22 15:42:05,612 - INFO - /home/pi/Desktop/images/22062026/15/41/image_22062026_15_42_04_59839.jpg
MAIN: 2026-06-22 15:42:05,613 - INFO - duration: 0.9135545080062002
MAIN: 2026-06-22 15:42:05,613 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:43:05,553 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:43:05,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-06-22 15:43:06,370 - INFO - taking picture
MAIN: 2026-06-22 15:43:06,370 - INFO - we take 553 photos in this while loop
MAIN: 2026-06-22 15:43:06,370 - INFO - /home/pi/Desktop/images/22062026/15/42/image_22062026_15_43_05_60712.jpg
MAIN: 2026-06-22 15:43:06,370 - INFO - duration: 0.9585079480020795
MAIN: 2026-06-22 15:43:06,371 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:44:04,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-06-22 15:44:05,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-06-22 15:44:06,556 - INFO - taking picture
MAIN: 2026-06-22 15:44:06,556 - INFO - we take 554 photos in this while loop
MAIN: 2026-06-22 15:44:06,556 - INFO - /home/pi/Desktop/images/22062026/15/43/image_22062026_15_44_05_60208.jpg
MAIN: 2026-06-22 15:44:06,556 - INFO - duration: 0.9353431589988759
MAIN: 2026-06-22 15:44:06,556 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/44'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:45:05,308 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:45: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-06-22 15:45:06,328 - INFO - taking picture
MAIN: 2026-06-22 15:45:06,328 - INFO - we take 555 photos in this while loop
MAIN: 2026-06-22 15:45:06,328 - INFO - /home/pi/Desktop/images/22062026/15/44/image_22062026_15_45_05_59801.jpg
MAIN: 2026-06-22 15:45:06,329 - INFO - duration: 0.9061315630024183
MAIN: 2026-06-22 15:45:06,329 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:46:05,087 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:46: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-06-22 15:46:05,885 - INFO - taking picture
MAIN: 2026-06-22 15:46:05,886 - INFO - we take 556 photos in this while loop
MAIN: 2026-06-22 15:46:05,886 - INFO - /home/pi/Desktop/images/22062026/15/45/image_22062026_15_46_05_59525.jpg
MAIN: 2026-06-22 15:46:05,886 - INFO - duration: 0.9376288729981752
MAIN: 2026-06-22 15:46:05,886 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:47:04,902 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:47:05,293 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:47:05,570 - INFO - taking picture
MAIN: 2026-06-22 15:47:05,571 - INFO - we take 557 photos in this while loop
MAIN: 2026-06-22 15:47:05,571 - INFO - /home/pi/Desktop/images/22062026/15/46/image_22062026_15_47_04_59690.jpg
MAIN: 2026-06-22 15:47:05,571 - INFO - duration: 0.9320665619961801
MAIN: 2026-06-22 15:47:05,571 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:48:05,473 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:48: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-06-22 15:48:06,472 - INFO - taking picture
MAIN: 2026-06-22 15:48:06,473 - INFO - we take 558 photos in this while loop
MAIN: 2026-06-22 15:48:06,473 - INFO - /home/pi/Desktop/images/22062026/15/47/image_22062026_15_48_05_60963.jpg
MAIN: 2026-06-22 15:48:06,473 - INFO - duration: 0.8702801170002203
MAIN: 2026-06-22 15:48:06,473 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:49: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-06-22 15:49:05,473 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:49:06,041 - INFO - taking picture
MAIN: 2026-06-22 15:49:06,041 - INFO - we take 559 photos in this while loop
MAIN: 2026-06-22 15:49:06,041 - INFO - /home/pi/Desktop/images/22062026/15/48/image_22062026_15_49_05_59439.jpg
MAIN: 2026-06-22 15:49:06,042 - INFO - duration: 0.9993162530008703
MAIN: 2026-06-22 15:49:06,042 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:50:05,603 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:50:06,289 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:50:06,308 - INFO - taking picture
MAIN: 2026-06-22 15:50:06,308 - INFO - we take 560 photos in this while loop
MAIN: 2026-06-22 15:50:06,309 - INFO - /home/pi/Desktop/images/22062026/15/49/image_22062026_15_50_05_60338.jpg
MAIN: 2026-06-22 15:50:06,309 - INFO - duration: 0.9284362469988992
MAIN: 2026-06-22 15:50:06,310 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/50'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:51:04,689 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:51:05,335 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:51:05,995 - INFO - taking picture
MAIN: 2026-06-22 15:51:05,995 - INFO - we take 561 photos in this while loop
MAIN: 2026-06-22 15:51:05,995 - INFO - /home/pi/Desktop/images/22062026/15/50/image_22062026_15_51_05_59685.jpg
MAIN: 2026-06-22 15:51:05,996 - INFO - duration: 0.9290815540007316
MAIN: 2026-06-22 15:51:05,996 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:52: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-06-22 15:52:05,138 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:52:05,678 - INFO - taking picture
MAIN: 2026-06-22 15:52:05,678 - INFO - we take 562 photos in this while loop
MAIN: 2026-06-22 15:52:05,678 - INFO - /home/pi/Desktop/images/22062026/15/51/image_22062026_15_52_04_59607.jpg
MAIN: 2026-06-22 15:52:05,678 - INFO - duration: 1.003759714003536
MAIN: 2026-06-22 15:52:05,679 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/52'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:53:05,004 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:53:05,940 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:53:06,598 - INFO - taking picture
MAIN: 2026-06-22 15:53:06,599 - INFO - we take 563 photos in this while loop
MAIN: 2026-06-22 15:53:06,599 - INFO - /home/pi/Desktop/images/22062026/15/52/image_22062026_15_53_05_60989.jpg
MAIN: 2026-06-22 15:53:06,599 - INFO - duration: 0.9346316270020907
MAIN: 2026-06-22 15:53:06,599 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:54:05,412 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:54:05,513 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:54:06,078 - INFO - taking picture
MAIN: 2026-06-22 15:54:06,078 - INFO - we take 564 photos in this while loop
MAIN: 2026-06-22 15:54:06,078 - INFO - /home/pi/Desktop/images/22062026/15/53/image_22062026_15_54_05_59479.jpg
MAIN: 2026-06-22 15:54:06,079 - INFO - duration: 0.9346566230015014
MAIN: 2026-06-22 15:54:06,079 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/54'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:55:05,105 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:55:05,689 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 15:55:05,810 - INFO - taking picture
MAIN: 2026-06-22 15:55:05,810 - INFO - we take 565 photos in this while loop
MAIN: 2026-06-22 15:55:05,811 - INFO - /home/pi/Desktop/images/22062026/15/54/image_22062026_15_55_05_59720.jpg
MAIN: 2026-06-22 15:55:05,811 - INFO - duration: 0.9459474250033963
MAIN: 2026-06-22 15:55:05,811 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/55'
MAIN: 2026-06-22 15:56:04,833 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:56:05,489 - INFO - taking picture
MAIN: 2026-06-22 15:56:05,490 - INFO - we take 566 photos in this while loop
MAIN: 2026-06-22 15:56:05,490 - INFO - /home/pi/Desktop/images/22062026/15/55/image_22062026_15_56_04_59757.jpg
MAIN: 2026-06-22 15:56:05,490 - INFO - duration: 0.8678889319999143
MAIN: 2026-06-22 15:56:05,490 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/56'
MAIN: 2026-06-22 15:56:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:57: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-06-22 15: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-06-22 15:57:06,241 - INFO - taking picture
MAIN: 2026-06-22 15:57:06,241 - INFO - we take 567 photos in this while loop
MAIN: 2026-06-22 15:57:06,241 - INFO - /home/pi/Desktop/images/22062026/15/56/image_22062026_15_57_05_60673.jpg
MAIN: 2026-06-22 15:57:06,241 - INFO - duration: 0.9456912009991356
MAIN: 2026-06-22 15:57:06,242 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:58: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-06-22 15:58:05,483 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:58:06,185 - INFO - taking picture
MAIN: 2026-06-22 15:58:06,186 - INFO - we take 568 photos in this while loop
MAIN: 2026-06-22 15:58:06,186 - INFO - /home/pi/Desktop/images/22062026/15/57/image_22062026_15_58_05_59914.jpg
MAIN: 2026-06-22 15:58:06,186 - INFO - duration: 0.9755993709986797
MAIN: 2026-06-22 15:58:06,186 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/15/58'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 15:59:05,243 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 15:59: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-06-22 15:59:05,916 - INFO - taking picture
MAIN: 2026-06-22 15:59:05,916 - INFO - we take 569 photos in this while loop
MAIN: 2026-06-22 15:59:05,916 - INFO - /home/pi/Desktop/images/22062026/15/58/image_22062026_15_59_05_59784.jpg
MAIN: 2026-06-22 15:59:05,916 - INFO - duration: 0.9214241169975139
MAIN: 2026-06-22 15:59:05,917 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 16:00: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-06-22 16:00:05,947 - INFO - taking picture
MAIN: 2026-06-22 16:00:05,947 - INFO - we take 570 photos in this while loop
MAIN: 2026-06-22 16:00:05,947 - INFO - /home/pi/Desktop/images/22062026/15/59/image_22062026_16_00_05_60052.jpg
MAIN: 2026-06-22 16:00:05,948 - INFO - duration: 0.8996917940021376
MAIN: 2026-06-22 16:00:05,948 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/00'
MAIN: 2026-06-22 16:00:06,026 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:01:04,877 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:01:05,481 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:01:05,593 - INFO - taking picture
MAIN: 2026-06-22 16:01:05,593 - INFO - we take 571 photos in this while loop
MAIN: 2026-06-22 16:01:05,593 - INFO - /home/pi/Desktop/images/22062026/16/00/image_22062026_16_01_04_59590.jpg
MAIN: 2026-06-22 16:01:05,593 - INFO - duration: 0.9544924459987669
MAIN: 2026-06-22 16:01:05,593 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:02: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-06-22 16:02: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-06-22 16:02:06,464 - INFO - taking picture
MAIN: 2026-06-22 16:02:06,465 - INFO - we take 572 photos in this while loop
MAIN: 2026-06-22 16:02:06,465 - INFO - /home/pi/Desktop/images/22062026/16/01/image_22062026_16_02_05_60918.jpg
MAIN: 2026-06-22 16:02:06,465 - INFO - duration: 0.907421844000055
MAIN: 2026-06-22 16:02:06,465 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/02'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:03: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-06-22 16:03: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-06-22 16:03:06,118 - INFO - taking picture
MAIN: 2026-06-22 16:03:06,119 - INFO - we take 573 photos in this while loop
MAIN: 2026-06-22 16:03:06,119 - INFO - /home/pi/Desktop/images/22062026/16/02/image_22062026_16_03_05_59691.jpg
MAIN: 2026-06-22 16:03:06,119 - INFO - duration: 0.8704095759967458
MAIN: 2026-06-22 16:03:06,119 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:04:04,991 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:04: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-06-22 16:04:05,654 - INFO - taking picture
MAIN: 2026-06-22 16:04:05,654 - INFO - we take 574 photos in this while loop
MAIN: 2026-06-22 16:04:05,655 - INFO - /home/pi/Desktop/images/22062026/16/03/image_22062026_16_04_04_59462.jpg
MAIN: 2026-06-22 16:04:05,655 - INFO - duration: 0.9440426389992354
MAIN: 2026-06-22 16:04:05,655 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/04'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:05:05,406 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:05:05,912 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:05:06,572 - INFO - taking picture
MAIN: 2026-06-22 16:05:06,572 - INFO - we take 575 photos in this while loop
MAIN: 2026-06-22 16:05:06,572 - INFO - /home/pi/Desktop/images/22062026/16/04/image_22062026_16_05_05_60939.jpg
MAIN: 2026-06-22 16:05:06,572 - INFO - duration: 0.9222350019990699
MAIN: 2026-06-22 16:05:06,573 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:06: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 ! 
MAIN: 2026-06-22 16:06: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-06-22 16:06:06,363 - INFO - taking picture
MAIN: 2026-06-22 16:06:06,363 - INFO - we take 576 photos in this while loop
MAIN: 2026-06-22 16:06:06,363 - INFO - /home/pi/Desktop/images/22062026/16/05/image_22062026_16_06_05_59776.jpg
MAIN: 2026-06-22 16:06:06,364 - INFO - duration: 0.9374085969975567
MAIN: 2026-06-22 16:06:06,364 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 16:07:05,397 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:07:05,530 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:07:06,136 - INFO - taking picture
MAIN: 2026-06-22 16:07:06,136 - INFO - we take 577 photos in this while loop
MAIN: 2026-06-22 16:07:06,136 - INFO - /home/pi/Desktop/images/22062026/16/06/image_22062026_16_07_05_59700.jpg
MAIN: 2026-06-22 16:07:06,136 - INFO - duration: 1.0097789720020955
MAIN: 2026-06-22 16:07:06,137 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/07'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:08:05,192 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:08:05,524 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:08:06,228 - INFO - taking picture
MAIN: 2026-06-22 16:08:06,228 - INFO - we take 578 photos in this while loop
MAIN: 2026-06-22 16:08:06,228 - INFO - /home/pi/Desktop/images/22062026/16/07/image_22062026_16_08_05_60156.jpg
MAIN: 2026-06-22 16:08:06,228 - INFO - duration: 0.9455694059943198
MAIN: 2026-06-22 16:08:06,229 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/08'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:09: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-06-22 16:09:05,712 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:09:06,371 - INFO - taking picture
MAIN: 2026-06-22 16:09:06,371 - INFO - we take 579 photos in this while loop
MAIN: 2026-06-22 16:09:06,371 - INFO - /home/pi/Desktop/images/22062026/16/08/image_22062026_16_09_05_60172.jpg
MAIN: 2026-06-22 16:09:06,371 - INFO - duration: 0.9156167819965049
MAIN: 2026-06-22 16:09:06,371 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 16:10: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-06-22 16:10:05,507 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:10:06,166 - INFO - taking picture
MAIN: 2026-06-22 16:10:06,166 - INFO - we take 580 photos in this while loop
MAIN: 2026-06-22 16:10:06,166 - INFO - /home/pi/Desktop/images/22062026/16/09/image_22062026_16_10_05_59835.jpg
MAIN: 2026-06-22 16:10:06,166 - INFO - duration: 0.8750925260028453
MAIN: 2026-06-22 16:10:06,167 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 16:11:05,195 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:11:05,259 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:11:05,921 - INFO - taking picture
MAIN: 2026-06-22 16:11:05,922 - INFO - we take 581 photos in this while loop
MAIN: 2026-06-22 16:11:05,922 - INFO - /home/pi/Desktop/images/22062026/16/10/image_22062026_16_11_05_59690.jpg
MAIN: 2026-06-22 16:11:05,922 - INFO - duration: 0.9405866759989294
MAIN: 2026-06-22 16:11:05,922 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:12:04,955 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:12:05,482 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:12:05,658 - INFO - taking picture
MAIN: 2026-06-22 16:12:05,659 - INFO - we take 582 photos in this while loop
MAIN: 2026-06-22 16:12:05,659 - INFO - /home/pi/Desktop/images/22062026/16/11/image_22062026_16_12_04_59682.jpg
MAIN: 2026-06-22 16:12:05,659 - INFO - duration: 0.9952296660048887
MAIN: 2026-06-22 16:12:05,659 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:13:05,562 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:13: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 ! 
MAIN: 2026-06-22 16:13:06,265 - INFO - taking picture
MAIN: 2026-06-22 16:13:06,265 - INFO - we take 583 photos in this while loop
MAIN: 2026-06-22 16:13:06,265 - INFO - /home/pi/Desktop/images/22062026/16/12/image_22062026_16_13_05_60644.jpg
MAIN: 2026-06-22 16:13:06,266 - INFO - duration: 0.9572237319953274
MAIN: 2026-06-22 16:13:06,266 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:14:04,785 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:14: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-06-22 16:14:06,203 - INFO - taking picture
MAIN: 2026-06-22 16:14:06,203 - INFO - we take 584 photos in this while loop
MAIN: 2026-06-22 16:14:06,203 - INFO - /home/pi/Desktop/images/22062026/16/13/image_22062026_16_14_05_59961.jpg
MAIN: 2026-06-22 16:14:06,203 - INFO - duration: 0.9329725249990588
MAIN: 2026-06-22 16:14:06,204 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/14'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:15:05,295 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:15:05,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-06-22 16:15:06,592 - INFO - taking picture
MAIN: 2026-06-22 16:15:06,592 - INFO - we take 585 photos in this while loop
MAIN: 2026-06-22 16:15:06,592 - INFO - /home/pi/Desktop/images/22062026/16/14/image_22062026_16_15_05_60361.jpg
MAIN: 2026-06-22 16:15:06,592 - INFO - duration: 0.9604401000033249
MAIN: 2026-06-22 16:15:06,592 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/15'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:16:05,076 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:16:05,868 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:16:06,573 - INFO - taking picture
MAIN: 2026-06-22 16:16:06,574 - INFO - we take 586 photos in this while loop
MAIN: 2026-06-22 16:16:06,574 - INFO - /home/pi/Desktop/images/22062026/16/15/image_22062026_16_16_05_59957.jpg
MAIN: 2026-06-22 16:16:06,574 - INFO - duration: 0.9846432379999897
MAIN: 2026-06-22 16:16:06,574 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/16'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:17:05,315 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:17:05,943 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:17:06,640 - INFO - taking picture
MAIN: 2026-06-22 16:17:06,640 - INFO - we take 587 photos in this while loop
MAIN: 2026-06-22 16:17:06,640 - INFO - /home/pi/Desktop/images/22062026/16/16/image_22062026_16_17_05_60142.jpg
MAIN: 2026-06-22 16:17:06,641 - INFO - duration: 0.9091382100014016
MAIN: 2026-06-22 16:17:06,641 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/17'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:18:05,672 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:18:05,784 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:18:06,443 - INFO - taking picture
MAIN: 2026-06-22 16:18:06,443 - INFO - we take 588 photos in this while loop
MAIN: 2026-06-22 16:18:06,444 - INFO - /home/pi/Desktop/images/22062026/16/17/image_22062026_16_18_05_59772.jpg
MAIN: 2026-06-22 16:18:06,444 - INFO - duration: 0.9398814750020392
MAIN: 2026-06-22 16:18:06,444 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/18'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:19:04,807 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:19:05,376 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:19:06,068 - INFO - taking picture
MAIN: 2026-06-22 16:19:06,068 - INFO - we take 589 photos in this while loop
MAIN: 2026-06-22 16:19:06,068 - INFO - /home/pi/Desktop/images/22062026/16/18/image_22062026_16_19_05_59660.jpg
MAIN: 2026-06-22 16:19:06,068 - INFO - duration: 0.9043777100014267
MAIN: 2026-06-22 16:19:06,069 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:20:05,077 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:20:05,547 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:20:05,747 - INFO - taking picture
MAIN: 2026-06-22 16:20:05,747 - INFO - we take 590 photos in this while loop
MAIN: 2026-06-22 16:20:05,747 - INFO - /home/pi/Desktop/images/22062026/16/19/image_22062026_16_20_05_59691.jpg
MAIN: 2026-06-22 16:20:05,747 - INFO - duration: 0.8915925480032456
MAIN: 2026-06-22 16:20:05,748 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/20'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:21:04,877 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:21:05,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-06-22 16:21:06,522 - INFO - taking picture
MAIN: 2026-06-22 16:21:06,523 - INFO - we take 591 photos in this while loop
MAIN: 2026-06-22 16:21:06,523 - INFO - /home/pi/Desktop/images/22062026/16/20/image_22062026_16_21_05_60737.jpg
MAIN: 2026-06-22 16:21:06,523 - INFO - duration: 0.9294224879995454
MAIN: 2026-06-22 16:21:06,523 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:22: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-06-22 16:22: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-06-22 16:22:06,227 - INFO - taking picture
MAIN: 2026-06-22 16:22:06,228 - INFO - we take 592 photos in this while loop
MAIN: 2026-06-22 16:22:06,228 - INFO - /home/pi/Desktop/images/22062026/16/21/image_22062026_16_22_05_59643.jpg
MAIN: 2026-06-22 16:22:06,228 - INFO - duration: 0.9915238820030936
MAIN: 2026-06-22 16:22:06,228 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/22'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:23:05,401 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:23: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-06-22 16:23:06,325 - INFO - taking picture
MAIN: 2026-06-22 16:23:06,325 - INFO - we take 593 photos in this while loop
MAIN: 2026-06-22 16:23:06,325 - INFO - /home/pi/Desktop/images/22062026/16/22/image_22062026_16_23_05_60198.jpg
MAIN: 2026-06-22 16:23:06,325 - INFO - duration: 0.8900747799998499
MAIN: 2026-06-22 16:23:06,325 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/23'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:24:05,412 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:24:05,779 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:24:06,080 - INFO - taking picture
MAIN: 2026-06-22 16:24:06,080 - INFO - we take 594 photos in this while loop
MAIN: 2026-06-22 16:24:06,080 - INFO - /home/pi/Desktop/images/22062026/16/23/image_22062026_16_24_05_59715.jpg
MAIN: 2026-06-22 16:24:06,081 - INFO - duration: 0.9300530749969766
MAIN: 2026-06-22 16:24:06,081 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/24'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16: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-06-22 16:25: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-06-22 16:25:05,535 - INFO - taking picture
MAIN: 2026-06-22 16:25:05,535 - INFO - we take 595 photos in this while loop
MAIN: 2026-06-22 16:25:05,535 - INFO - /home/pi/Desktop/images/22062026/16/24/image_22062026_16_25_04_59503.jpg
MAIN: 2026-06-22 16:25:05,535 - INFO - duration: 0.8813982470019255
MAIN: 2026-06-22 16:25:05,536 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/25'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:26:05,193 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:26:05,772 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:26:06,517 - INFO - taking picture
MAIN: 2026-06-22 16:26:06,518 - INFO - we take 596 photos in this while loop
MAIN: 2026-06-22 16:26:06,518 - INFO - /home/pi/Desktop/images/22062026/16/25/image_22062026_16_26_05_60898.jpg
MAIN: 2026-06-22 16:26:06,518 - INFO - duration: 0.96555719999742
MAIN: 2026-06-22 16:26:06,518 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:27: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-06-22 16:27:05,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-06-22 16:27:06,262 - INFO - taking picture
MAIN: 2026-06-22 16:27:06,262 - INFO - we take 597 photos in this while loop
MAIN: 2026-06-22 16:27:06,262 - INFO - /home/pi/Desktop/images/22062026/16/26/image_22062026_16_27_05_59804.jpg
MAIN: 2026-06-22 16:27:06,262 - INFO - duration: 0.9050126290021581
MAIN: 2026-06-22 16:27:06,262 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:28: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-06-22 16:28: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-06-22 16:28:06,032 - INFO - taking picture
MAIN: 2026-06-22 16:28:06,032 - INFO - we take 598 photos in this while loop
MAIN: 2026-06-22 16:28:06,032 - INFO - /home/pi/Desktop/images/22062026/16/27/image_22062026_16_28_05_59667.jpg
MAIN: 2026-06-22 16:28:06,032 - INFO - duration: 1.007278843993845
MAIN: 2026-06-22 16:28:06,032 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/28'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:29: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-06-22 16:29: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-06-22 16:29:05,736 - INFO - taking picture
MAIN: 2026-06-22 16:29:05,737 - INFO - we take 599 photos in this while loop
MAIN: 2026-06-22 16:29:05,737 - INFO - /home/pi/Desktop/images/22062026/16/28/image_22062026_16_29_05_59788.jpg
MAIN: 2026-06-22 16:29:05,737 - INFO - duration: 0.9234557550007594
MAIN: 2026-06-22 16:29:05,737 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/29'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:30:04,784 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:30: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-06-22 16:30:05,450 - INFO - taking picture
MAIN: 2026-06-22 16:30:05,450 - INFO - we take 600 photos in this while loop
MAIN: 2026-06-22 16:30:05,450 - INFO - /home/pi/Desktop/images/22062026/16/29/image_22062026_16_30_04_59741.jpg
MAIN: 2026-06-22 16:30:05,450 - INFO - duration: 0.8951957220051554
MAIN: 2026-06-22 16:30:05,450 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 16:31:05,176 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:31:05,566 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:31:06,227 - INFO - taking picture
MAIN: 2026-06-22 16:31:06,227 - INFO - we take 601 photos in this while loop
MAIN: 2026-06-22 16:31:06,227 - INFO - /home/pi/Desktop/images/22062026/16/30/image_22062026_16_31_05_60799.jpg
MAIN: 2026-06-22 16:31:06,228 - INFO - duration: 0.8733805299998494
MAIN: 2026-06-22 16:31:06,228 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:32:05,156 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:32:05,277 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:32:05,826 - INFO - taking picture
MAIN: 2026-06-22 16:32:05,826 - INFO - we take 602 photos in this while loop
MAIN: 2026-06-22 16:32:05,826 - INFO - /home/pi/Desktop/images/22062026/16/31/image_22062026_16_32_05_59538.jpg
MAIN: 2026-06-22 16:32:05,826 - INFO - duration: 0.9338522410034784
MAIN: 2026-06-22 16:32:05,826 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:33:04,894 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:33: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-06-22 16:33:05,577 - INFO - taking picture
MAIN: 2026-06-22 16:33:05,578 - INFO - we take 603 photos in this while loop
MAIN: 2026-06-22 16:33:05,578 - INFO - /home/pi/Desktop/images/22062026/16/32/image_22062026_16_33_04_59758.jpg
MAIN: 2026-06-22 16:33:05,578 - INFO - duration: 0.9268478939993656
MAIN: 2026-06-22 16:33:05,578 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:34:05,794 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:34:05,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-06-22 16:34:06,519 - INFO - taking picture
MAIN: 2026-06-22 16:34:06,519 - INFO - we take 604 photos in this while loop
MAIN: 2026-06-22 16:34:06,520 - INFO - /home/pi/Desktop/images/22062026/16/33/image_22062026_16_34_05_60930.jpg
MAIN: 2026-06-22 16:34:06,520 - INFO - duration: 0.9383946599991759
MAIN: 2026-06-22 16:34:06,520 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/34'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:35:05,524 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:35:05,654 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:35:06,238 - INFO - taking picture
MAIN: 2026-06-22 16:35:06,239 - INFO - we take 605 photos in this while loop
MAIN: 2026-06-22 16:35:06,239 - INFO - /home/pi/Desktop/images/22062026/16/34/image_22062026_16_35_05_59700.jpg
MAIN: 2026-06-22 16:35:06,239 - INFO - duration: 0.9574503929979983
MAIN: 2026-06-22 16:35:06,239 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/35'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:36:05,459 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:36:05,739 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:36:06,176 - INFO - taking picture
MAIN: 2026-06-22 16:36:06,176 - INFO - we take 606 photos in this while loop
MAIN: 2026-06-22 16:36:06,176 - INFO - /home/pi/Desktop/images/22062026/16/35/image_22062026_16_36_05_59918.jpg
MAIN: 2026-06-22 16:36:06,177 - INFO - duration: 0.9766567159967963
MAIN: 2026-06-22 16:36:06,177 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/36'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:37:04,701 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:37:05,218 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:37:05,910 - INFO - taking picture
MAIN: 2026-06-22 16:37:05,910 - INFO - we take 607 photos in this while loop
MAIN: 2026-06-22 16:37:05,910 - INFO - /home/pi/Desktop/images/22062026/16/36/image_22062026_16_37_05_59806.jpg
MAIN: 2026-06-22 16:37:05,911 - INFO - duration: 0.9045349809966865
MAIN: 2026-06-22 16:37:05,911 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:38: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-06-22 16:38: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-06-22 16:38:05,575 - INFO - taking picture
MAIN: 2026-06-22 16:38:05,575 - INFO - we take 608 photos in this while loop
MAIN: 2026-06-22 16:38:05,576 - INFO - /home/pi/Desktop/images/22062026/16/37/image_22062026_16_38_04_59630.jpg
MAIN: 2026-06-22 16:38:05,576 - INFO - duration: 0.9392733599961502
MAIN: 2026-06-22 16:38:05,577 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 16:39:05,170 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:39:05,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-06-22 16:39:06,374 - INFO - taking picture
MAIN: 2026-06-22 16:39:06,374 - INFO - we take 609 photos in this while loop
MAIN: 2026-06-22 16:39:06,374 - INFO - /home/pi/Desktop/images/22062026/16/38/image_22062026_16_39_05_60836.jpg
MAIN: 2026-06-22 16:39:06,375 - INFO - duration: 0.9016626789962174
MAIN: 2026-06-22 16:39:06,375 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/39'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:40:05,387 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:40:05,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-06-22 16:40:06,066 - INFO - taking picture
MAIN: 2026-06-22 16:40:06,067 - INFO - we take 610 photos in this while loop
MAIN: 2026-06-22 16:40:06,067 - INFO - /home/pi/Desktop/images/22062026/16/39/image_22062026_16_40_05_59689.jpg
MAIN: 2026-06-22 16:40:06,067 - INFO - duration: 0.9046120040002279
MAIN: 2026-06-22 16:40:06,068 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/40'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:41:05,097 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:41:05,513 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:41:05,767 - INFO - taking picture
MAIN: 2026-06-22 16:41:05,767 - INFO - we take 611 photos in this while loop
MAIN: 2026-06-22 16:41:05,767 - INFO - /home/pi/Desktop/images/22062026/16/40/image_22062026_16_41_05_59656.jpg
MAIN: 2026-06-22 16:41:05,767 - INFO - duration: 0.9482701260058093
MAIN: 2026-06-22 16:41:05,767 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 16:42:05,095 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:42:05,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-06-22 16:42:06,627 - INFO - taking picture
MAIN: 2026-06-22 16:42:06,627 - INFO - we take 612 photos in this while loop
MAIN: 2026-06-22 16:42:06,627 - INFO - /home/pi/Desktop/images/22062026/16/41/image_22062026_16_42_05_60873.jpg
MAIN: 2026-06-22 16:42:06,627 - INFO - duration: 0.9350768189979135
MAIN: 2026-06-22 16:42:06,628 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:43:04,753 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:43: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-06-22 16:43:06,313 - INFO - taking picture
MAIN: 2026-06-22 16:43:06,313 - INFO - we take 613 photos in this while loop
MAIN: 2026-06-22 16:43:06,313 - INFO - /home/pi/Desktop/images/22062026/16/42/image_22062026_16_43_05_59708.jpg
MAIN: 2026-06-22 16:43:06,313 - INFO - duration: 0.9125553480043891
MAIN: 2026-06-22 16:43:06,313 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:44: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-06-22 16:44: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-06-22 16:44:05,828 - INFO - taking picture
MAIN: 2026-06-22 16:44:05,828 - INFO - we take 614 photos in this while loop
MAIN: 2026-06-22 16:44:05,828 - INFO - /home/pi/Desktop/images/22062026/16/43/image_22062026_16_44_05_59494.jpg
MAIN: 2026-06-22 16:44:05,828 - INFO - duration: 0.9336398489977
MAIN: 2026-06-22 16:44:05,829 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/44'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:45:04,953 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:45: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-06-22 16:45:05,662 - INFO - taking picture
MAIN: 2026-06-22 16:45:05,662 - INFO - we take 615 photos in this while loop
MAIN: 2026-06-22 16:45:05,663 - INFO - /home/pi/Desktop/images/22062026/16/44/image_22062026_16_45_04_59834.jpg
MAIN: 2026-06-22 16:45:05,663 - INFO - duration: 0.9334266779987956
MAIN: 2026-06-22 16:45:05,663 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/45'
MAIN: 2026-06-22 16:46: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

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:46:05,452 - INFO - taking picture
MAIN: 2026-06-22 16:46:05,453 - INFO - we take 616 photos in this while loop
MAIN: 2026-06-22 16:46:05,453 - INFO - /home/pi/Desktop/images/22062026/16/45/image_22062026_16_46_04_59820.jpg
MAIN: 2026-06-22 16:46:05,453 - INFO - duration: 0.9027997919984045
MAIN: 2026-06-22 16:46:05,453 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/46'
MAIN: 2026-06-22 16:46:05,802 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:47:04,755 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:47: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-06-22 16:47:06,400 - INFO - taking picture
MAIN: 2026-06-22 16:47:06,401 - INFO - we take 617 photos in this while loop
MAIN: 2026-06-22 16:47:06,401 - INFO - /home/pi/Desktop/images/22062026/16/46/image_22062026_16_47_05_60924.jpg
MAIN: 2026-06-22 16:47:06,401 - INFO - duration: 0.9266677209961927
MAIN: 2026-06-22 16:47:06,401 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:48:04,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 ! 
MAIN: 2026-06-22 16:48:05,296 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:48:05,957 - INFO - taking picture
MAIN: 2026-06-22 16:48:05,957 - INFO - we take 618 photos in this while loop
MAIN: 2026-06-22 16:48:05,957 - INFO - /home/pi/Desktop/images/22062026/16/47/image_22062026_16_48_05_59608.jpg
MAIN: 2026-06-22 16:48:05,957 - INFO - duration: 0.8745833520006272
MAIN: 2026-06-22 16:48:05,957 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:49: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-06-22 16:49:05,960 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:49:06,620 - INFO - taking picture
MAIN: 2026-06-22 16:49:06,620 - INFO - we take 619 photos in this while loop
MAIN: 2026-06-22 16:49:06,620 - INFO - /home/pi/Desktop/images/22062026/16/48/image_22062026_16_49_05_60625.jpg
MAIN: 2026-06-22 16:49:06,620 - INFO - duration: 0.9122033749954426
MAIN: 2026-06-22 16:49:06,620 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:50:05,593 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:50:05,756 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:50:06,414 - INFO - taking picture
MAIN: 2026-06-22 16:50:06,414 - INFO - we take 620 photos in this while loop
MAIN: 2026-06-22 16:50:06,414 - INFO - /home/pi/Desktop/images/22062026/16/49/image_22062026_16_50_05_59823.jpg
MAIN: 2026-06-22 16:50:06,414 - INFO - duration: 0.8825445480033522
MAIN: 2026-06-22 16:50:06,415 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/50'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:51:05,154 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:51:05,392 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:51:05,824 - INFO - taking picture
MAIN: 2026-06-22 16:51:05,824 - INFO - we take 621 photos in this while loop
MAIN: 2026-06-22 16:51:05,824 - INFO - /home/pi/Desktop/images/22062026/16/50/image_22062026_16_51_05_59372.jpg
MAIN: 2026-06-22 16:51:05,824 - INFO - duration: 0.9200000619966886
MAIN: 2026-06-22 16:51:05,824 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:52:04,920 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:52:05,579 - INFO - taking picture
MAIN: 2026-06-22 16:52:05,579 - INFO - we take 622 photos in this while loop
MAIN: 2026-06-22 16:52:05,579 - INFO - /home/pi/Desktop/images/22062026/16/51/image_22062026_16_52_04_59766.jpg
MAIN: 2026-06-22 16:52:05,579 - INFO - duration: 0.9079637950053439
MAIN: 2026-06-22 16:52:05,579 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/52'
MAIN: 2026-06-22 16:52:05,922 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:53:05,617 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:53:05,698 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:53:06,281 - INFO - taking picture
MAIN: 2026-06-22 16:53:06,282 - INFO - we take 623 photos in this while loop
MAIN: 2026-06-22 16:53:06,282 - INFO - /home/pi/Desktop/images/22062026/16/52/image_22062026_16_53_05_60677.jpg
MAIN: 2026-06-22 16:53:06,282 - INFO - duration: 0.9330605669965735
MAIN: 2026-06-22 16:53:06,282 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:54:05,092 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:54: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-06-22 16:54:05,986 - INFO - taking picture
MAIN: 2026-06-22 16:54:05,987 - INFO - we take 624 photos in this while loop
MAIN: 2026-06-22 16:54:05,987 - INFO - /home/pi/Desktop/images/22062026/16/53/image_22062026_16_54_05_59741.jpg
MAIN: 2026-06-22 16:54:05,987 - INFO - duration: 0.8964320909944945
MAIN: 2026-06-22 16:54:05,987 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/54'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:55:04,917 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:55:05,024 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 16:55:05,631 - INFO - taking picture
MAIN: 2026-06-22 16:55:05,631 - INFO - we take 625 photos in this while loop
MAIN: 2026-06-22 16:55:05,631 - INFO - /home/pi/Desktop/images/22062026/16/54/image_22062026_16_55_04_59604.jpg
MAIN: 2026-06-22 16:55:05,631 - INFO - duration: 0.9365969489954296
MAIN: 2026-06-22 16:55:05,632 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/55'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:56:04,893 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:56: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-06-22 16:56:05,555 - INFO - taking picture
MAIN: 2026-06-22 16:56:05,555 - INFO - we take 626 photos in this while loop
MAIN: 2026-06-22 16:56:05,556 - INFO - /home/pi/Desktop/images/22062026/16/55/image_22062026_16_56_04_59938.jpg
MAIN: 2026-06-22 16:56:05,556 - INFO - duration: 0.9229821609987994
MAIN: 2026-06-22 16:56:05,556 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:57: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-06-22 16:57:05,710 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:57:06,371 - INFO - taking picture
MAIN: 2026-06-22 16:57:06,372 - INFO - we take 627 photos in this while loop
MAIN: 2026-06-22 16:57:06,372 - INFO - /home/pi/Desktop/images/22062026/16/56/image_22062026_16_57_05_60865.jpg
MAIN: 2026-06-22 16:57:06,372 - INFO - duration: 0.8737100289945374
MAIN: 2026-06-22 16:57:06,372 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:58:05,580 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:58: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-06-22 16:58:06,292 - INFO - taking picture
MAIN: 2026-06-22 16:58:06,293 - INFO - we take 628 photos in this while loop
MAIN: 2026-06-22 16:58:06,293 - INFO - /home/pi/Desktop/images/22062026/16/57/image_22062026_16_58_05_59785.jpg
MAIN: 2026-06-22 16:58:06,293 - INFO - duration: 1.009076066002308
MAIN: 2026-06-22 16:58:06,293 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/58'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 16:59:05,346 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 16:59: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-06-22 16:59:06,015 - INFO - taking picture
MAIN: 2026-06-22 16:59:06,015 - INFO - we take 629 photos in this while loop
MAIN: 2026-06-22 16:59:06,015 - INFO - /home/pi/Desktop/images/22062026/16/58/image_22062026_16_59_05_59787.jpg
MAIN: 2026-06-22 16:59:06,015 - INFO - duration: 0.9439038150012493
MAIN: 2026-06-22 16:59:06,015 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/16/59'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:00:05,007 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:00:05,338 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:00:05,690 - INFO - taking picture
MAIN: 2026-06-22 17:00:05,691 - INFO - we take 630 photos in this while loop
MAIN: 2026-06-22 17:00:05,691 - INFO - /home/pi/Desktop/images/22062026/16/59/image_22062026_17_00_05_59701.jpg
MAIN: 2026-06-22 17:00:05,691 - INFO - duration: 0.918658577997121
MAIN: 2026-06-22 17:00:05,691 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/00'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:01: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-06-22 17:01:05,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-06-22 17:01:05,474 - INFO - taking picture
MAIN: 2026-06-22 17:01:05,475 - INFO - we take 631 photos in this while loop
MAIN: 2026-06-22 17:01:05,475 - INFO - /home/pi/Desktop/images/22062026/17/00/image_22062026_17_01_04_59756.jpg
MAIN: 2026-06-22 17:01:05,475 - INFO - duration: 0.9461125930029084
MAIN: 2026-06-22 17:01:05,475 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:02: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-06-22 17:02: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-06-22 17:02:06,456 - INFO - taking picture
MAIN: 2026-06-22 17:02:06,456 - INFO - we take 632 photos in this while loop
MAIN: 2026-06-22 17:02:06,456 - INFO - /home/pi/Desktop/images/22062026/17/01/image_22062026_17_02_05_61052.jpg
MAIN: 2026-06-22 17:02:06,456 - INFO - duration: 0.875379705998057
MAIN: 2026-06-22 17:02:06,457 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/02'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:03:05,407 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:03:05,433 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:03:06,075 - INFO - taking picture
MAIN: 2026-06-22 17:03:06,075 - INFO - we take 633 photos in this while loop
MAIN: 2026-06-22 17:03:06,075 - INFO - /home/pi/Desktop/images/22062026/17/02/image_22062026_17_03_05_59561.jpg
MAIN: 2026-06-22 17:03:06,075 - INFO - duration: 0.9328485100049875
MAIN: 2026-06-22 17:03:06,076 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:04:05,196 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:04:05,822 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:04:05,857 - INFO - taking picture
MAIN: 2026-06-22 17:04:05,858 - INFO - we take 634 photos in this while loop
MAIN: 2026-06-22 17:04:05,858 - INFO - /home/pi/Desktop/images/22062026/17/03/image_22062026_17_04_05_59809.jpg
MAIN: 2026-06-22 17:04:05,858 - INFO - duration: 0.9061284069975954
MAIN: 2026-06-22 17:04:05,859 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/04'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:05: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-06-22 17:05:05,871 - INFO - taking picture
MAIN: 2026-06-22 17:05:05,871 - INFO - we take 635 photos in this while loop
MAIN: 2026-06-22 17:05:05,871 - INFO - /home/pi/Desktop/images/22062026/17/04/image_22062026_17_05_05_59955.jpg
MAIN: 2026-06-22 17:05:05,871 - INFO - duration: 0.963429625997378
MAIN: 2026-06-22 17:05:05,872 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/05'
MAIN: 2026-06-22 17:05:05,927 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:06:05,084 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:06: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-06-22 17:06:05,969 - INFO - taking picture
MAIN: 2026-06-22 17:06:05,970 - INFO - we take 636 photos in this while loop
MAIN: 2026-06-22 17:06:05,970 - INFO - /home/pi/Desktop/images/22062026/17/05/image_22062026_17_06_05_60158.jpg
MAIN: 2026-06-22 17:06:05,970 - INFO - duration: 0.9030168180033797
MAIN: 2026-06-22 17:06:05,970 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:07: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-06-22 17:07:04,928 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:07:05,552 - INFO - taking picture
MAIN: 2026-06-22 17:07:05,552 - INFO - we take 637 photos in this while loop
MAIN: 2026-06-22 17:07:05,552 - INFO - /home/pi/Desktop/images/22062026/17/06/image_22062026_17_07_04_59543.jpg
MAIN: 2026-06-22 17:07:05,552 - INFO - duration: 0.941670760003035
MAIN: 2026-06-22 17:07:05,552 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/07'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:08:05,549 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:08:05,928 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:08:06,589 - INFO - taking picture
MAIN: 2026-06-22 17:08:06,589 - INFO - we take 638 photos in this while loop
MAIN: 2026-06-22 17:08:06,589 - INFO - /home/pi/Desktop/images/22062026/17/07/image_22062026_17_08_05_61106.jpg
MAIN: 2026-06-22 17:08:06,589 - INFO - duration: 0.8721422210001037
MAIN: 2026-06-22 17:08:06,590 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/08'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:09: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-06-22 17:09: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-06-22 17:09:06,262 - INFO - taking picture
MAIN: 2026-06-22 17:09:06,263 - INFO - we take 639 photos in this while loop
MAIN: 2026-06-22 17:09:06,263 - INFO - /home/pi/Desktop/images/22062026/17/08/image_22062026_17_09_05_59654.jpg
MAIN: 2026-06-22 17:09:06,263 - INFO - duration: 0.8908850270017865
MAIN: 2026-06-22 17:09:06,263 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/09'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:10:05,420 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:10:06,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-06-22 17:10:06,124 - INFO - taking picture
MAIN: 2026-06-22 17:10:06,125 - INFO - we take 640 photos in this while loop
MAIN: 2026-06-22 17:10:06,125 - INFO - /home/pi/Desktop/images/22062026/17/09/image_22062026_17_10_05_59817.jpg
MAIN: 2026-06-22 17:10:06,125 - INFO - duration: 0.9355426719994284
MAIN: 2026-06-22 17:10:06,126 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/10'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:11: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-06-22 17:11:05,633 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:11:06,295 - INFO - taking picture
MAIN: 2026-06-22 17:11:06,295 - INFO - we take 641 photos in this while loop
MAIN: 2026-06-22 17:11:06,295 - INFO - /home/pi/Desktop/images/22062026/17/10/image_22062026_17_11_05_60177.jpg
MAIN: 2026-06-22 17:11:06,295 - INFO - duration: 0.9278407180026988
MAIN: 2026-06-22 17:11:06,295 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:12:05,254 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:12:05,309 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:12:05,970 - INFO - taking picture
MAIN: 2026-06-22 17:12:05,970 - INFO - we take 642 photos in this while loop
MAIN: 2026-06-22 17:12:05,970 - INFO - /home/pi/Desktop/images/22062026/17/11/image_22062026_17_12_05_59688.jpg
MAIN: 2026-06-22 17:12:05,971 - INFO - duration: 0.9150206980048097
MAIN: 2026-06-22 17:12:05,971 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:13:05,112 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:13:06,005 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:13:06,664 - INFO - taking picture
MAIN: 2026-06-22 17:13:06,664 - INFO - we take 643 photos in this while loop
MAIN: 2026-06-22 17:13:06,664 - INFO - /home/pi/Desktop/images/22062026/17/12/image_22062026_17_13_06_60668.jpg
MAIN: 2026-06-22 17:13:06,664 - INFO - duration: 0.9404327709999052
MAIN: 2026-06-22 17:13:06,665 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:14: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-06-22 17:14: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-06-22 17:14:06,412 - INFO - taking picture
MAIN: 2026-06-22 17:14:06,412 - INFO - we take 644 photos in this while loop
MAIN: 2026-06-22 17:14:06,412 - INFO - /home/pi/Desktop/images/22062026/17/13/image_22062026_17_14_05_59705.jpg
MAIN: 2026-06-22 17:14:06,413 - INFO - duration: 0.9826236559965764
MAIN: 2026-06-22 17:14:06,413 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/14'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:15: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-06-22 17:15:05,748 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:15:06,255 - INFO - taking picture
MAIN: 2026-06-22 17:15:06,255 - INFO - we take 645 photos in this while loop
MAIN: 2026-06-22 17:15:06,256 - INFO - /home/pi/Desktop/images/22062026/17/14/image_22062026_17_15_05_59853.jpg
MAIN: 2026-06-22 17:15:06,256 - INFO - duration: 0.9724341320034
MAIN: 2026-06-22 17:15:06,256 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/15'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17: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-06-22 17:16:05,459 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:16:06,158 - INFO - taking picture
MAIN: 2026-06-22 17:16:06,159 - INFO - we take 646 photos in this while loop
MAIN: 2026-06-22 17:16:06,159 - INFO - /home/pi/Desktop/images/22062026/17/15/image_22062026_17_16_05_59954.jpg
MAIN: 2026-06-22 17:16:06,159 - INFO - duration: 0.9212254779995419
MAIN: 2026-06-22 17:16:06,159 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/16'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17: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-06-22 17:17:05,193 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:17:05,898 - INFO - taking picture
MAIN: 2026-06-22 17:17:05,898 - INFO - we take 647 photos in this while loop
MAIN: 2026-06-22 17:17:05,899 - INFO - /home/pi/Desktop/images/22062026/17/16/image_22062026_17_17_05_59726.jpg
MAIN: 2026-06-22 17:17:05,899 - INFO - duration: 0.9342901679992792
MAIN: 2026-06-22 17:17:05,899 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/17'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:18:04,949 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:18: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-06-22 17:18:05,615 - INFO - taking picture
MAIN: 2026-06-22 17:18:05,615 - INFO - we take 648 photos in this while loop
MAIN: 2026-06-22 17:18:05,615 - INFO - /home/pi/Desktop/images/22062026/17/17/image_22062026_17_18_04_59725.jpg
MAIN: 2026-06-22 17:18:05,615 - INFO - duration: 0.9250846299983095
MAIN: 2026-06-22 17:18:05,616 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/18'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:19: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-06-22 17:19: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-06-22 17:19:06,360 - INFO - taking picture
MAIN: 2026-06-22 17:19:06,361 - INFO - we take 649 photos in this while loop
MAIN: 2026-06-22 17:19:06,361 - INFO - /home/pi/Desktop/images/22062026/17/18/image_22062026_17_19_05_60787.jpg
MAIN: 2026-06-22 17:19:06,361 - INFO - duration: 0.8831899719953071
MAIN: 2026-06-22 17:19:06,361 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:20:05,678 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:20:05,990 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:20:06,350 - INFO - taking picture
MAIN: 2026-06-22 17:20:06,350 - INFO - we take 650 photos in this while loop
MAIN: 2026-06-22 17:20:06,350 - INFO - /home/pi/Desktop/images/22062026/17/19/image_22062026_17_20_05_59961.jpg
MAIN: 2026-06-22 17:20:06,351 - INFO - duration: 0.9115347320039291
MAIN: 2026-06-22 17:20:06,351 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/20'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:21:04,717 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:21:05,296 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:21:05,956 - INFO - taking picture
MAIN: 2026-06-22 17:21:05,957 - INFO - we take 651 photos in this while loop
MAIN: 2026-06-22 17:21:05,957 - INFO - /home/pi/Desktop/images/22062026/17/20/image_22062026_17_21_05_59609.jpg
MAIN: 2026-06-22 17:21:05,957 - INFO - duration: 0.907967473998724
MAIN: 2026-06-22 17:21:05,957 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:22:05,016 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:22:05,239 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:22:05,684 - INFO - taking picture
MAIN: 2026-06-22 17:22:05,684 - INFO - we take 652 photos in this while loop
MAIN: 2026-06-22 17:22:05,685 - INFO - /home/pi/Desktop/images/22062026/17/21/image_22062026_17_22_05_59698.jpg
MAIN: 2026-06-22 17:22:05,685 - INFO - duration: 0.9372839029965689
MAIN: 2026-06-22 17:22:05,685 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/22'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:23:04,781 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:23:05,921 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:23:06,632 - INFO - taking picture
MAIN: 2026-06-22 17:23:06,632 - INFO - we take 653 photos in this while loop
MAIN: 2026-06-22 17:23:06,632 - INFO - /home/pi/Desktop/images/22062026/17/22/image_22062026_17_23_05_60879.jpg
MAIN: 2026-06-22 17:23:06,632 - INFO - duration: 1.0049934089984163
MAIN: 2026-06-22 17:23:06,633 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/23'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:24: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-06-22 17:24:05,339 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:24:05,697 - INFO - taking picture
MAIN: 2026-06-22 17:24:05,697 - INFO - we take 654 photos in this while loop
MAIN: 2026-06-22 17:24:05,697 - INFO - /home/pi/Desktop/images/22062026/17/23/image_22062026_17_24_05_59102.jpg
MAIN: 2026-06-22 17:24:05,697 - INFO - duration: 0.9670151399986935
MAIN: 2026-06-22 17:24:05,697 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/24'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:25:04,875 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:25: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-06-22 17:25:05,578 - INFO - taking picture
MAIN: 2026-06-22 17:25:05,578 - INFO - we take 655 photos in this while loop
MAIN: 2026-06-22 17:25:05,578 - INFO - /home/pi/Desktop/images/22062026/17/24/image_22062026_17_25_04_59899.jpg
MAIN: 2026-06-22 17:25:05,578 - INFO - duration: 0.9484467479996965
MAIN: 2026-06-22 17:25:05,579 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/25'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:26: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-06-22 17:26:05,478 - INFO - taking picture
MAIN: 2026-06-22 17:26:05,478 - INFO - we take 656 photos in this while loop
MAIN: 2026-06-22 17:26:05,478 - INFO - /home/pi/Desktop/images/22062026/17/25/image_22062026_17_26_04_59958.jpg
MAIN: 2026-06-22 17:26:05,478 - INFO - duration: 0.8896090769994771
MAIN: 2026-06-22 17:26:05,479 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/26'
MAIN: 2026-06-22 17:26: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:27: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-06-22 17:27:05,585 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:27:06,291 - INFO - taking picture
MAIN: 2026-06-22 17:27:06,291 - INFO - we take 657 photos in this while loop
MAIN: 2026-06-22 17:27:06,291 - INFO - /home/pi/Desktop/images/22062026/17/26/image_22062026_17_27_05_60699.jpg
MAIN: 2026-06-22 17:27:06,291 - INFO - duration: 1.003138519001368
MAIN: 2026-06-22 17:27:06,292 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 17:28:05,461 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:28: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-06-22 17:28:06,130 - INFO - taking picture
MAIN: 2026-06-22 17:28:06,130 - INFO - we take 658 photos in this while loop
MAIN: 2026-06-22 17:28:06,130 - INFO - /home/pi/Desktop/images/22062026/17/27/image_22062026_17_28_05_59925.jpg
MAIN: 2026-06-22 17:28:06,130 - INFO - duration: 0.9160819190001348
MAIN: 2026-06-22 17:28:06,130 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/28'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:29: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-06-22 17:29:05,147 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:29:05,806 - INFO - taking picture
MAIN: 2026-06-22 17:29:05,806 - INFO - we take 659 photos in this while loop
MAIN: 2026-06-22 17:29:05,807 - INFO - /home/pi/Desktop/images/22062026/17/28/image_22062026_17_29_05_59719.jpg
MAIN: 2026-06-22 17:29:05,807 - INFO - duration: 0.8727660450022086
MAIN: 2026-06-22 17:29:05,807 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/29'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:30:04,920 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:30:05,495 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:30:05,646 - INFO - taking picture
MAIN: 2026-06-22 17:30:05,646 - INFO - we take 660 photos in this while loop
MAIN: 2026-06-22 17:30:05,646 - INFO - /home/pi/Desktop/images/22062026/17/29/image_22062026_17_30_04_59733.jpg
MAIN: 2026-06-22 17:30:05,646 - INFO - duration: 0.9784948550004628
MAIN: 2026-06-22 17:30:05,647 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/30'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:31:04,799 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:31:04,977 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:31:05,471 - INFO - taking picture
MAIN: 2026-06-22 17:31:05,471 - INFO - we take 661 photos in this while loop
MAIN: 2026-06-22 17:31:05,471 - INFO - /home/pi/Desktop/images/22062026/17/30/image_22062026_17_31_04_59861.jpg
MAIN: 2026-06-22 17:31:05,471 - INFO - duration: 0.9422947880011634
MAIN: 2026-06-22 17:31:05,471 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:32:05,482 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:32:05,888 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:32:06,550 - INFO - taking picture
MAIN: 2026-06-22 17:32:06,550 - INFO - we take 662 photos in this while loop
MAIN: 2026-06-22 17:32:06,550 - INFO - /home/pi/Desktop/images/22062026/17/31/image_22062026_17_32_05_61150.jpg
MAIN: 2026-06-22 17:32:06,550 - INFO - duration: 0.8708892980066594
MAIN: 2026-06-22 17:32:06,550 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 17:33:05,245 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:33:05,574 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:33:06,285 - INFO - taking picture
MAIN: 2026-06-22 17:33:06,285 - INFO - we take 663 photos in this while loop
MAIN: 2026-06-22 17:33:06,285 - INFO - /home/pi/Desktop/images/22062026/17/32/image_22062026_17_33_05_59629.jpg
MAIN: 2026-06-22 17:33:06,285 - INFO - duration: 0.9764091100005317
MAIN: 2026-06-22 17:33:06,286 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:34:05,355 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:34:05,659 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:34:06,028 - INFO - taking picture
MAIN: 2026-06-22 17:34:06,028 - INFO - we take 664 photos in this while loop
MAIN: 2026-06-22 17:34:06,029 - INFO - /home/pi/Desktop/images/22062026/17/33/image_22062026_17_34_05_59780.jpg
MAIN: 2026-06-22 17:34:06,029 - INFO - duration: 0.9394328650014359
MAIN: 2026-06-22 17:34:06,029 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/34'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:35:05,178 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:35:05,857 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:35:05,923 - INFO - taking picture
MAIN: 2026-06-22 17:35:05,924 - INFO - we take 665 photos in this while loop
MAIN: 2026-06-22 17:35:05,925 - INFO - /home/pi/Desktop/images/22062026/17/34/image_22062026_17_35_05_59863.jpg
MAIN: 2026-06-22 17:35:05,925 - INFO - duration: 0.9723926759979804
MAIN: 2026-06-22 17:35:05,926 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/35'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:36:04,877 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:36:05,364 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:36:06,022 - INFO - taking picture
MAIN: 2026-06-22 17:36:06,022 - INFO - we take 666 photos in this while loop
MAIN: 2026-06-22 17:36:06,022 - INFO - /home/pi/Desktop/images/22062026/17/35/image_22062026_17_36_05_60198.jpg
MAIN: 2026-06-22 17:36:06,022 - INFO - duration: 0.8715102179994574
MAIN: 2026-06-22 17:36:06,023 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/36'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:37:04,872 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:37:04,975 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:37:05,635 - INFO - taking picture
MAIN: 2026-06-22 17:37:05,635 - INFO - we take 667 photos in this while loop
MAIN: 2026-06-22 17:37:05,635 - INFO - /home/pi/Desktop/images/22062026/17/36/image_22062026_17_37_04_59544.jpg
MAIN: 2026-06-22 17:37:05,635 - INFO - duration: 0.9404752510017715
MAIN: 2026-06-22 17:37:05,636 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:38:05,155 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:38:05,821 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:38:06,479 - INFO - taking picture
MAIN: 2026-06-22 17:38:06,479 - INFO - we take 668 photos in this while loop
MAIN: 2026-06-22 17:38:06,479 - INFO - /home/pi/Desktop/images/22062026/17/37/image_22062026_17_38_05_60911.jpg
MAIN: 2026-06-22 17:38:06,479 - INFO - duration: 0.8731513099992299
MAIN: 2026-06-22 17:38:06,479 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/38'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:39:05,142 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:39: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-06-22 17:39:06,474 - INFO - taking picture
MAIN: 2026-06-22 17:39:06,474 - INFO - we take 669 photos in this while loop
MAIN: 2026-06-22 17:39:06,474 - INFO - /home/pi/Desktop/images/22062026/17/38/image_22062026_17_39_05_59938.jpg
MAIN: 2026-06-22 17:39:06,474 - INFO - duration: 0.9293890949993511
MAIN: 2026-06-22 17:39:06,475 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/39'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:40: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-06-22 17:40:06,143 - INFO - taking picture
MAIN: 2026-06-22 17:40:06,144 - INFO - we take 670 photos in this while loop
MAIN: 2026-06-22 17:40:06,144 - INFO - /home/pi/Desktop/images/22062026/17/39/image_22062026_17_40_05_59697.jpg
MAIN: 2026-06-22 17:40:06,144 - INFO - duration: 0.9014624249975896
MAIN: 2026-06-22 17:40:06,144 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/40'
MAIN: 2026-06-22 17:40:06,169 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:41:05,223 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:41: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-06-22 17:41:05,902 - INFO - taking picture
MAIN: 2026-06-22 17:41:05,903 - INFO - we take 671 photos in this while loop
MAIN: 2026-06-22 17:41:05,903 - INFO - /home/pi/Desktop/images/22062026/17/40/image_22062026_17_41_05_59705.jpg
MAIN: 2026-06-22 17:41:05,903 - INFO - duration: 0.9545487129944377
MAIN: 2026-06-22 17:41:05,903 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:42:04,908 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:42:05,071 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:42:05,576 - INFO - taking picture
MAIN: 2026-06-22 17:42:05,577 - INFO - we take 672 photos in this while loop
MAIN: 2026-06-22 17:42:05,577 - INFO - /home/pi/Desktop/images/22062026/17/41/image_22062026_17_42_04_59700.jpg
MAIN: 2026-06-22 17:42:05,577 - INFO - duration: 0.9281616230000509
MAIN: 2026-06-22 17:42:05,577 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:43: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-06-22 17:43:05,805 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:43:06,499 - INFO - taking picture
MAIN: 2026-06-22 17:43:06,499 - INFO - we take 673 photos in this while loop
MAIN: 2026-06-22 17:43:06,499 - INFO - /home/pi/Desktop/images/22062026/17/42/image_22062026_17_43_05_60944.jpg
MAIN: 2026-06-22 17:43:06,499 - INFO - duration: 0.9062332969988347
MAIN: 2026-06-22 17:43:06,499 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:44: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-06-22 17:44:05,676 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:44:06,382 - INFO - taking picture
MAIN: 2026-06-22 17:44:06,382 - INFO - we take 674 photos in this while loop
MAIN: 2026-06-22 17:44:06,382 - INFO - /home/pi/Desktop/images/22062026/17/43/image_22062026_17_44_05_59836.jpg
MAIN: 2026-06-22 17:44:06,382 - INFO - duration: 0.953388496003754
MAIN: 2026-06-22 17:44:06,383 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/44'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:45:05,502 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:45:05,543 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:45:06,167 - INFO - taking picture
MAIN: 2026-06-22 17:45:06,167 - INFO - we take 675 photos in this while loop
MAIN: 2026-06-22 17:45:06,167 - INFO - /home/pi/Desktop/images/22062026/17/44/image_22062026_17_45_05_59863.jpg
MAIN: 2026-06-22 17:45:06,167 - INFO - duration: 0.8753187830006937
MAIN: 2026-06-22 17:45:06,168 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 17:46: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-06-22 17:46: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-06-22 17:46:05,903 - INFO - taking picture
MAIN: 2026-06-22 17:46:05,903 - INFO - we take 676 photos in this while loop
MAIN: 2026-06-22 17:46:05,903 - INFO - /home/pi/Desktop/images/22062026/17/45/image_22062026_17_46_05_59671.jpg
MAIN: 2026-06-22 17:46:05,903 - INFO - duration: 0.9393684640017455
MAIN: 2026-06-22 17:46:05,904 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 17:47: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-06-22 17:47:05,390 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:47:05,552 - INFO - taking picture
MAIN: 2026-06-22 17:47:05,552 - INFO - we take 677 photos in this while loop
MAIN: 2026-06-22 17:47:05,552 - INFO - /home/pi/Desktop/images/22062026/17/46/image_22062026_17_47_04_59660.jpg
MAIN: 2026-06-22 17:47:05,552 - INFO - duration: 0.9275730189983733
MAIN: 2026-06-22 17:47:05,552 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:48:04,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 ! 
MAIN: 2026-06-22 17:48:05,746 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:48:06,453 - INFO - taking picture
MAIN: 2026-06-22 17:48:06,453 - INFO - we take 678 photos in this while loop
MAIN: 2026-06-22 17:48:06,453 - INFO - /home/pi/Desktop/images/22062026/17/47/image_22062026_17_48_05_60860.jpg
MAIN: 2026-06-22 17:48:06,453 - INFO - duration: 0.9679474180011312
MAIN: 2026-06-22 17:48:06,454 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:49: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-06-22 17:49: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-06-22 17:49:06,430 - INFO - taking picture
MAIN: 2026-06-22 17:49:06,430 - INFO - we take 679 photos in this while loop
MAIN: 2026-06-22 17:49:06,431 - INFO - /home/pi/Desktop/images/22062026/17/48/image_22062026_17_49_05_60019.jpg
MAIN: 2026-06-22 17:49:06,431 - INFO - duration: 0.9254936750003253
MAIN: 2026-06-22 17:49:06,431 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:50:05,378 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:50:05,897 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:50:06,048 - INFO - taking picture
MAIN: 2026-06-22 17:50:06,048 - INFO - we take 680 photos in this while loop
MAIN: 2026-06-22 17:50:06,048 - INFO - /home/pi/Desktop/images/22062026/17/49/image_22062026_17_50_05_59660.jpg
MAIN: 2026-06-22 17:50:06,049 - INFO - duration: 0.8825828600020031
MAIN: 2026-06-22 17:50:06,049 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/50'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:51:04,964 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:51:05,421 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:51:05,678 - INFO - taking picture
MAIN: 2026-06-22 17:51:05,678 - INFO - we take 681 photos in this while loop
MAIN: 2026-06-22 17:51:05,678 - INFO - /home/pi/Desktop/images/22062026/17/50/image_22062026_17_51_04_59518.jpg
MAIN: 2026-06-22 17:51:05,678 - INFO - duration: 0.9934203299999353
MAIN: 2026-06-22 17:51:05,679 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 17:52:05,788 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:52:05,933 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:52:06,592 - INFO - taking picture
MAIN: 2026-06-22 17:52:06,592 - INFO - we take 682 photos in this while loop
MAIN: 2026-06-22 17:52:06,592 - INFO - /home/pi/Desktop/images/22062026/17/51/image_22062026_17_52_05_60991.jpg
MAIN: 2026-06-22 17:52:06,593 - INFO - duration: 0.9163123770049424
MAIN: 2026-06-22 17:52:06,593 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/52'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:53: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-06-22 17:53: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-06-22 17:53:06,226 - INFO - taking picture
MAIN: 2026-06-22 17:53:06,226 - INFO - we take 683 photos in this while loop
MAIN: 2026-06-22 17:53:06,226 - INFO - /home/pi/Desktop/images/22062026/17/52/image_22062026_17_53_05_59588.jpg
MAIN: 2026-06-22 17:53:06,226 - INFO - duration: 0.9615583140039234
MAIN: 2026-06-22 17:53:06,227 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:54:05,103 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:54: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-06-22 17:54:06,354 - INFO - taking picture
MAIN: 2026-06-22 17:54:06,355 - INFO - we take 684 photos in this while loop
MAIN: 2026-06-22 17:54:06,355 - INFO - /home/pi/Desktop/images/22062026/17/53/image_22062026_17_54_05_60160.jpg
MAIN: 2026-06-22 17:54:06,355 - INFO - duration: 0.9298502630044823
MAIN: 2026-06-22 17:54:06,355 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/54'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:55:04,806 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:55:05,515 - INFO - taking picture
MAIN: 2026-06-22 17:55:05,515 - INFO - we take 685 photos in this while loop
MAIN: 2026-06-22 17:55:05,515 - INFO - /home/pi/Desktop/images/22062026/17/54/image_22062026_17_55_04_59126.jpg
MAIN: 2026-06-22 17:55:05,515 - INFO - duration: 0.9640235569968354
MAIN: 2026-06-22 17:55:05,515 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/55'
MAIN: 2026-06-22 17:55: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-06-22 17:56:05,123 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:56:05,212 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:56:05,789 - INFO - taking picture
MAIN: 2026-06-22 17:56:05,790 - INFO - we take 686 photos in this while loop
MAIN: 2026-06-22 17:56:05,790 - INFO - /home/pi/Desktop/images/22062026/17/55/image_22062026_17_56_05_60295.jpg
MAIN: 2026-06-22 17:56:05,790 - INFO - duration: 0.942983077999088
MAIN: 2026-06-22 17:56:05,790 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:57:05,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 ! 
MAIN: 2026-06-22 17:57: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-06-22 17:57:06,419 - INFO - taking picture
MAIN: 2026-06-22 17:57:06,420 - INFO - we take 687 photos in this while loop
MAIN: 2026-06-22 17:57:06,420 - INFO - /home/pi/Desktop/images/22062026/17/56/image_22062026_17_57_05_60703.jpg
MAIN: 2026-06-22 17:57:06,420 - INFO - duration: 0.8698330970000825
MAIN: 2026-06-22 17:57:06,420 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 17:58:05,515 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:58: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-06-22 17:58:06,214 - INFO - taking picture
MAIN: 2026-06-22 17:58:06,214 - INFO - we take 688 photos in this while loop
MAIN: 2026-06-22 17:58:06,214 - INFO - /home/pi/Desktop/images/22062026/17/57/image_22062026_17_58_05_59703.jpg
MAIN: 2026-06-22 17:58:06,214 - INFO - duration: 0.960592698000255
MAIN: 2026-06-22 17:58:06,215 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 17:59:05,238 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 17:59:05,513 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 17:59:05,929 - INFO - taking picture
MAIN: 2026-06-22 17:59:05,929 - INFO - we take 689 photos in this while loop
MAIN: 2026-06-22 17:59:05,930 - INFO - /home/pi/Desktop/images/22062026/17/58/image_22062026_17_59_05_59721.jpg
MAIN: 2026-06-22 17:59:05,930 - INFO - duration: 0.9544017879961757
MAIN: 2026-06-22 17:59:05,930 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/17/59'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:00:05,237 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:00:05,807 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:00:05,985 - INFO - taking picture
MAIN: 2026-06-22 18:00:05,985 - INFO - we take 690 photos in this while loop
MAIN: 2026-06-22 18:00:05,985 - INFO - /home/pi/Desktop/images/22062026/17/59/image_22062026_18_00_05_59997.jpg
MAIN: 2026-06-22 18:00:05,986 - INFO - duration: 1.0125724320023437
MAIN: 2026-06-22 18:00:05,986 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/00'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:01:05,055 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:01:05,567 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:01:05,723 - INFO - taking picture
MAIN: 2026-06-22 18:01:05,723 - INFO - we take 691 photos in this while loop
MAIN: 2026-06-22 18:01:05,723 - INFO - /home/pi/Desktop/images/22062026/18/00/image_22062026_18_01_05_59820.jpg
MAIN: 2026-06-22 18:01:05,723 - INFO - duration: 0.9296000480026123
MAIN: 2026-06-22 18:01:05,724 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/01'
MAIN: 2026-06-22 18:02: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

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:02:05,619 - INFO - taking picture
MAIN: 2026-06-22 18:02:05,620 - INFO - we take 692 photos in this while loop
MAIN: 2026-06-22 18:02:05,620 - INFO - /home/pi/Desktop/images/22062026/18/01/image_22062026_18_02_04_59924.jpg
MAIN: 2026-06-22 18:02:05,620 - INFO - duration: 0.9020385249968967
MAIN: 2026-06-22 18:02:05,620 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/02'
MAIN: 2026-06-22 18:02:06,153 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:03:04,968 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:03:05,664 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:03:06,370 - INFO - taking picture
MAIN: 2026-06-22 18:03:06,370 - INFO - we take 693 photos in this while loop
MAIN: 2026-06-22 18:03:06,370 - INFO - /home/pi/Desktop/images/22062026/18/02/image_22062026_18_03_05_60733.jpg
MAIN: 2026-06-22 18:03:06,370 - INFO - duration: 0.9186341499953414
MAIN: 2026-06-22 18:03:06,370 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:04: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-06-22 18:04:05,508 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:04:06,168 - INFO - taking picture
MAIN: 2026-06-22 18:04:06,168 - INFO - we take 694 photos in this while loop
MAIN: 2026-06-22 18:04:06,168 - INFO - /home/pi/Desktop/images/22062026/18/03/image_22062026_18_04_05_59818.jpg
MAIN: 2026-06-22 18:04:06,168 - INFO - duration: 0.8977949779946357
MAIN: 2026-06-22 18:04:06,169 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/04'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:05: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-06-22 18:05:05,452 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:05:05,826 - INFO - taking picture
MAIN: 2026-06-22 18:05:05,826 - INFO - we take 695 photos in this while loop
MAIN: 2026-06-22 18:05:05,827 - INFO - /home/pi/Desktop/images/22062026/18/04/image_22062026_18_05_05_59639.jpg
MAIN: 2026-06-22 18:05:05,827 - INFO - duration: 0.9164090010017389
MAIN: 2026-06-22 18:05:05,827 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:06:04,961 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:06:05,617 - INFO - taking picture
MAIN: 2026-06-22 18:06:05,618 - INFO - we take 696 photos in this while loop
MAIN: 2026-06-22 18:06:05,618 - INFO - /home/pi/Desktop/images/22062026/18/05/image_22062026_18_06_04_59811.jpg
MAIN: 2026-06-22 18:06:05,618 - INFO - duration: 0.896641350002028
MAIN: 2026-06-22 18:06:05,618 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/06'
MAIN: 2026-06-22 18:06:05,725 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:07:05,676 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:07: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-06-22 18:07:06,366 - INFO - taking picture
MAIN: 2026-06-22 18:07:06,366 - INFO - we take 697 photos in this while loop
MAIN: 2026-06-22 18:07:06,366 - INFO - /home/pi/Desktop/images/22062026/18/06/image_22062026_18_07_05_60701.jpg
MAIN: 2026-06-22 18:07:06,366 - INFO - duration: 0.9438429410001845
MAIN: 2026-06-22 18:07:06,367 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/07'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:08: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-06-22 18:08: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-06-22 18:08:05,983 - INFO - taking picture
MAIN: 2026-06-22 18:08:05,984 - INFO - we take 698 photos in this while loop
MAIN: 2026-06-22 18:08:05,984 - INFO - /home/pi/Desktop/images/22062026/18/07/image_22062026_18_08_05_59653.jpg
MAIN: 2026-06-22 18:08:05,984 - INFO - duration: 0.9079131969992886
MAIN: 2026-06-22 18:08:05,984 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/08'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:09:04,872 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:09: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-06-22 18:09:05,536 - INFO - taking picture
MAIN: 2026-06-22 18:09:05,536 - INFO - we take 699 photos in this while loop
MAIN: 2026-06-22 18:09:05,536 - INFO - /home/pi/Desktop/images/22062026/18/08/image_22062026_18_09_04_59553.jpg
MAIN: 2026-06-22 18:09:05,536 - INFO - duration: 0.9066529209958389
MAIN: 2026-06-22 18:09:05,537 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/09'
MAIN: 2026-06-22 18:10:04,838 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:10:05,533 - INFO - taking picture
MAIN: 2026-06-22 18:10:05,533 - INFO - we take 700 photos in this while loop
MAIN: 2026-06-22 18:10:05,533 - INFO - /home/pi/Desktop/images/22062026/18/09/image_22062026_18_10_04_59972.jpg
MAIN: 2026-06-22 18:10:05,534 - INFO - duration: 0.9314408350037411
MAIN: 2026-06-22 18:10:05,534 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/10'
MAIN: 2026-06-22 18:10: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-06-22 18:11:04,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-06-22 18:11:05,293 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:11:05,410 - INFO - taking picture
MAIN: 2026-06-22 18:11:05,410 - INFO - we take 701 photos in this while loop
MAIN: 2026-06-22 18:11:05,410 - INFO - /home/pi/Desktop/images/22062026/18/10/image_22062026_18_11_04_59905.jpg
MAIN: 2026-06-22 18:11:05,411 - INFO - duration: 0.9032065170031274
MAIN: 2026-06-22 18:11:05,411 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:12: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 ! 
MAIN: 2026-06-22 18:12:05,945 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:12:06,605 - INFO - taking picture
MAIN: 2026-06-22 18:12:06,606 - INFO - we take 702 photos in this while loop
MAIN: 2026-06-22 18:12:06,606 - INFO - /home/pi/Desktop/images/22062026/18/11/image_22062026_18_12_05_61218.jpg
MAIN: 2026-06-22 18:12:06,606 - INFO - duration: 0.8803062220031279
MAIN: 2026-06-22 18:12:06,606 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:13:04,732 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:13:05,425 - INFO - taking picture
MAIN: 2026-06-22 18:13:05,425 - INFO - we take 703 photos in this while loop
MAIN: 2026-06-22 18:13:05,426 - INFO - /home/pi/Desktop/images/22062026/18/12/image_22062026_18_13_04_58797.jpg
MAIN: 2026-06-22 18:13:05,426 - INFO - duration: 0.9028630009997869
MAIN: 2026-06-22 18:13:05,426 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/13'
MAIN: 2026-06-22 18:13: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-06-22 18:14:04,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 ! 
MAIN: 2026-06-22 18:14:05,660 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:14:06,321 - INFO - taking picture
MAIN: 2026-06-22 18:14:06,321 - INFO - we take 704 photos in this while loop
MAIN: 2026-06-22 18:14:06,321 - INFO - /home/pi/Desktop/images/22062026/18/13/image_22062026_18_14_05_60880.jpg
MAIN: 2026-06-22 18:14:06,321 - INFO - duration: 0.9178065870000864
MAIN: 2026-06-22 18:14:06,321 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/14'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:15:05,159 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:15:05,622 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:15:06,283 - INFO - taking picture
MAIN: 2026-06-22 18:15:06,284 - INFO - we take 705 photos in this while loop
MAIN: 2026-06-22 18:15:06,284 - INFO - /home/pi/Desktop/images/22062026/18/14/image_22062026_18_15_05_59970.jpg
MAIN: 2026-06-22 18:15:06,284 - INFO - duration: 0.9097536469998886
MAIN: 2026-06-22 18:15:06,284 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/15'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:16: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-06-22 18:16: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-06-22 18:16:06,417 - INFO - taking picture
MAIN: 2026-06-22 18:16:06,418 - INFO - we take 706 photos in this while loop
MAIN: 2026-06-22 18:16:06,418 - INFO - /home/pi/Desktop/images/22062026/18/15/image_22062026_18_16_05_60098.jpg
MAIN: 2026-06-22 18:16:06,418 - INFO - duration: 0.9455279709945899
MAIN: 2026-06-22 18:16:06,418 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/16'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:17:05,127 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:17: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-06-22 18:17:06,450 - INFO - taking picture
MAIN: 2026-06-22 18:17:06,450 - INFO - we take 707 photos in this while loop
MAIN: 2026-06-22 18:17:06,450 - INFO - /home/pi/Desktop/images/22062026/18/16/image_22062026_18_17_05_59995.jpg
MAIN: 2026-06-22 18:17:06,450 - INFO - duration: 0.982556207003654
MAIN: 2026-06-22 18:17:06,451 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/17'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:18:05,414 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:18:05,514 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:18:06,176 - INFO - taking picture
MAIN: 2026-06-22 18:18:06,176 - INFO - we take 708 photos in this while loop
MAIN: 2026-06-22 18:18:06,176 - INFO - /home/pi/Desktop/images/22062026/18/17/image_22062026_18_18_05_59760.jpg
MAIN: 2026-06-22 18:18:06,176 - INFO - duration: 0.94813065299968
MAIN: 2026-06-22 18:18:06,177 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/18'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:19:05,157 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:19:05,596 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:19:05,826 - INFO - taking picture
MAIN: 2026-06-22 18:19:05,826 - INFO - we take 709 photos in this while loop
MAIN: 2026-06-22 18:19:05,826 - INFO - /home/pi/Desktop/images/22062026/18/18/image_22062026_18_19_05_59665.jpg
MAIN: 2026-06-22 18:19:05,826 - INFO - duration: 0.9321035670000128
MAIN: 2026-06-22 18:19:05,827 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/19'
MAIN: 2026-06-22 18:20:05,124 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:20:05,823 - INFO - taking picture
MAIN: 2026-06-22 18:20:05,823 - INFO - we take 710 photos in this while loop
MAIN: 2026-06-22 18:20:05,823 - INFO - /home/pi/Desktop/images/22062026/18/19/image_22062026_18_20_05_59996.jpg
MAIN: 2026-06-22 18:20:05,823 - INFO - duration: 0.9322861389955506
MAIN: 2026-06-22 18:20:05,824 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/20'
MAIN: 2026-06-22 18:20:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:21:04,790 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:21: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-06-22 18:21:05,524 - INFO - taking picture
MAIN: 2026-06-22 18:21:05,524 - INFO - we take 711 photos in this while loop
MAIN: 2026-06-22 18:21:05,524 - INFO - /home/pi/Desktop/images/22062026/18/20/image_22062026_18_21_04_59714.jpg
MAIN: 2026-06-22 18:21:05,525 - INFO - duration: 0.9192581149982288
MAIN: 2026-06-22 18:21:05,525 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:22:05,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-06-22 18:22:05,878 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:22:06,618 - INFO - taking picture
MAIN: 2026-06-22 18:22:06,618 - INFO - we take 712 photos in this while loop
MAIN: 2026-06-22 18:22:06,619 - INFO - /home/pi/Desktop/images/22062026/18/21/image_22062026_18_22_05_61047.jpg
MAIN: 2026-06-22 18:22:06,619 - INFO - duration: 0.9656394830017234
MAIN: 2026-06-22 18:22:06,619 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/22'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:23:04,911 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:23:05,867 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:23:06,577 - INFO - taking picture
MAIN: 2026-06-22 18:23:06,577 - INFO - we take 713 photos in this while loop
MAIN: 2026-06-22 18:23:06,577 - INFO - /home/pi/Desktop/images/22062026/18/22/image_22062026_18_23_05_59942.jpg
MAIN: 2026-06-22 18:23:06,577 - INFO - duration: 0.9812135239990312
MAIN: 2026-06-22 18:23:06,578 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/23'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:24:05,409 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:24:05,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-06-22 18:24:06,425 - INFO - taking picture
MAIN: 2026-06-22 18:24:06,425 - INFO - we take 714 photos in this while loop
MAIN: 2026-06-22 18:24:06,425 - INFO - /home/pi/Desktop/images/22062026/18/23/image_22062026_18_24_05_59961.jpg
MAIN: 2026-06-22 18:24:06,425 - INFO - duration: 0.8674889959947905
MAIN: 2026-06-22 18:24:06,426 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/24'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:25:05,170 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:25:05,587 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:25:05,844 - INFO - taking picture
MAIN: 2026-06-22 18:25:05,845 - INFO - we take 715 photos in this while loop
MAIN: 2026-06-22 18:25:05,845 - INFO - /home/pi/Desktop/images/22062026/18/24/image_22062026_18_25_05_59383.jpg
MAIN: 2026-06-22 18:25:05,845 - INFO - duration: 0.9030768120064749
MAIN: 2026-06-22 18:25:05,845 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/25'
MAIN: 2026-06-22 18:26: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-06-22 18:26:05,533 - INFO - taking picture
MAIN: 2026-06-22 18:26:05,534 - INFO - we take 716 photos in this while loop
MAIN: 2026-06-22 18:26:05,534 - INFO - /home/pi/Desktop/images/22062026/18/25/image_22062026_18_26_04_59688.jpg
MAIN: 2026-06-22 18:26:05,534 - INFO - duration: 0.9030546479989425
MAIN: 2026-06-22 18:26:05,534 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/26'
MAIN: 2026-06-22 18:26:05,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:27:04,729 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:27: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-06-22 18:27:06,377 - INFO - taking picture
MAIN: 2026-06-22 18:27:06,377 - INFO - we take 717 photos in this while loop
MAIN: 2026-06-22 18:27:06,377 - INFO - /home/pi/Desktop/images/22062026/18/26/image_22062026_18_27_05_60814.jpg
MAIN: 2026-06-22 18:27:06,378 - INFO - duration: 0.9326991380003165
MAIN: 2026-06-22 18:27:06,378 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:28:05,216 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:28:05,678 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:28:06,384 - INFO - taking picture
MAIN: 2026-06-22 18:28:06,384 - INFO - we take 718 photos in this while loop
MAIN: 2026-06-22 18:28:06,384 - INFO - /home/pi/Desktop/images/22062026/18/27/image_22062026_18_28_05_60004.jpg
MAIN: 2026-06-22 18:28:06,384 - INFO - duration: 0.9354029390015057
MAIN: 2026-06-22 18:28:06,385 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/28'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:29: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-06-22 18:29:05,397 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:29:06,057 - INFO - taking picture
MAIN: 2026-06-22 18:29:06,057 - INFO - we take 719 photos in this while loop
MAIN: 2026-06-22 18:29:06,057 - INFO - /home/pi/Desktop/images/22062026/18/28/image_22062026_18_29_05_59715.jpg
MAIN: 2026-06-22 18:29:06,057 - INFO - duration: 0.8926514690028853
MAIN: 2026-06-22 18:29:06,058 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/29'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:30:05,196 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:30:05,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-06-22 18:30:05,929 - INFO - taking picture
MAIN: 2026-06-22 18:30:05,929 - INFO - we take 720 photos in this while loop
MAIN: 2026-06-22 18:30:05,929 - INFO - /home/pi/Desktop/images/22062026/18/29/image_22062026_18_30_05_59780.jpg
MAIN: 2026-06-22 18:30:05,929 - INFO - duration: 0.9843580279994057
MAIN: 2026-06-22 18:30:05,929 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 18:31:05,014 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:31:05,526 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:31:05,682 - INFO - taking picture
MAIN: 2026-06-22 18:31:05,683 - INFO - we take 721 photos in this while loop
MAIN: 2026-06-22 18:31:05,683 - INFO - /home/pi/Desktop/images/22062026/18/30/image_22062026_18_31_05_59789.jpg
MAIN: 2026-06-22 18:31:05,683 - INFO - duration: 0.9482146199952695
MAIN: 2026-06-22 18:31:05,683 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/31'
MAIN: 2026-06-22 18:32:04,781 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:32:05,471 - INFO - taking picture
MAIN: 2026-06-22 18:32:05,471 - INFO - we take 722 photos in this while loop
MAIN: 2026-06-22 18:32:05,471 - INFO - /home/pi/Desktop/images/22062026/18/31/image_22062026_18_32_04_59829.jpg
MAIN: 2026-06-22 18:32:05,471 - INFO - duration: 0.9076047369962907
MAIN: 2026-06-22 18:32:05,472 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/32'
MAIN: 2026-06-22 18:32:05,847 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:33: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-06-22 18:33: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-06-22 18:33:06,414 - INFO - taking picture
MAIN: 2026-06-22 18:33:06,415 - INFO - we take 723 photos in this while loop
MAIN: 2026-06-22 18:33:06,415 - INFO - /home/pi/Desktop/images/22062026/18/32/image_22062026_18_33_05_60915.jpg
MAIN: 2026-06-22 18:33:06,415 - INFO - duration: 0.9350778380030533
MAIN: 2026-06-22 18:33:06,415 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:34: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-06-22 18:34:05,598 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:34:06,256 - INFO - taking picture
MAIN: 2026-06-22 18:34:06,256 - INFO - we take 724 photos in this while loop
MAIN: 2026-06-22 18:34:06,256 - INFO - /home/pi/Desktop/images/22062026/18/33/image_22062026_18_34_05_59846.jpg
MAIN: 2026-06-22 18:34:06,257 - INFO - duration: 0.930177989997901
MAIN: 2026-06-22 18:34:06,257 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/34'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:35: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-06-22 18:35:05,502 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:35:06,067 - INFO - taking picture
MAIN: 2026-06-22 18:35:06,067 - INFO - we take 725 photos in this while loop
MAIN: 2026-06-22 18:35:06,068 - INFO - /home/pi/Desktop/images/22062026/18/34/image_22062026_18_35_05_59792.jpg
MAIN: 2026-06-22 18:35:06,068 - INFO - duration: 0.948745470996073
MAIN: 2026-06-22 18:35:06,068 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/35'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:36:05,286 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:36:05,634 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:36:06,000 - INFO - taking picture
MAIN: 2026-06-22 18:36:06,000 - INFO - we take 726 photos in this while loop
MAIN: 2026-06-22 18:36:06,001 - INFO - /home/pi/Desktop/images/22062026/18/35/image_22062026_18_36_05_59896.jpg
MAIN: 2026-06-22 18:36:06,001 - INFO - duration: 0.9851048220007215
MAIN: 2026-06-22 18:36:06,001 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/36'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:37:05,132 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:37: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-06-22 18:37:05,798 - INFO - taking picture
MAIN: 2026-06-22 18:37:05,799 - INFO - we take 727 photos in this while loop
MAIN: 2026-06-22 18:37:05,799 - INFO - /home/pi/Desktop/images/22062026/18/36/image_22062026_18_37_05_59847.jpg
MAIN: 2026-06-22 18:37:05,799 - INFO - duration: 0.9356593789998442
MAIN: 2026-06-22 18:37:05,799 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:38:05,167 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:38: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 ! 
MAIN: 2026-06-22 18:38:05,883 - INFO - taking picture
MAIN: 2026-06-22 18:38:05,884 - INFO - we take 728 photos in this while loop
MAIN: 2026-06-22 18:38:05,884 - INFO - /home/pi/Desktop/images/22062026/18/37/image_22062026_18_38_05_60041.jpg
MAIN: 2026-06-22 18:38:05,884 - INFO - duration: 0.9795019809971564
MAIN: 2026-06-22 18:38:05,885 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/38'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:39:04,821 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:39: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-06-22 18:39:05,531 - INFO - taking picture
MAIN: 2026-06-22 18:39:05,531 - INFO - we take 729 photos in this while loop
MAIN: 2026-06-22 18:39:05,532 - INFO - /home/pi/Desktop/images/22062026/18/38/image_22062026_18_39_04_59643.jpg
MAIN: 2026-06-22 18:39:05,532 - INFO - duration: 0.9838702510023722
MAIN: 2026-06-22 18:39:05,532 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/39'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:40:05,116 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:40:05,359 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:40:05,839 - INFO - taking picture
MAIN: 2026-06-22 18:40:05,839 - INFO - we take 730 photos in this while loop
MAIN: 2026-06-22 18:40:05,839 - INFO - /home/pi/Desktop/images/22062026/18/39/image_22062026_18_40_05_60320.jpg
MAIN: 2026-06-22 18:40:05,839 - INFO - duration: 0.9711029580066679
MAIN: 2026-06-22 18:40:05,840 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/40'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:41:04,952 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:41:05,185 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:41:05,623 - INFO - taking picture
MAIN: 2026-06-22 18:41:05,623 - INFO - we take 731 photos in this while loop
MAIN: 2026-06-22 18:41:05,623 - INFO - /home/pi/Desktop/images/22062026/18/40/image_22062026_18_41_04_59827.jpg
MAIN: 2026-06-22 18:41:05,623 - INFO - duration: 0.928102857003978
MAIN: 2026-06-22 18:41:05,624 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:42:05,617 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:42:05,904 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:42:06,599 - INFO - taking picture
MAIN: 2026-06-22 18:42:06,599 - INFO - we take 732 photos in this while loop
MAIN: 2026-06-22 18:42:06,599 - INFO - /home/pi/Desktop/images/22062026/18/41/image_22062026_18_42_05_60989.jpg
MAIN: 2026-06-22 18:42:06,600 - INFO - duration: 0.9150307919990155
MAIN: 2026-06-22 18:42:06,600 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:43:05,204 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:43:05,617 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:43:06,278 - INFO - taking picture
MAIN: 2026-06-22 18:43:06,278 - INFO - we take 733 photos in this while loop
MAIN: 2026-06-22 18:43:06,278 - INFO - /home/pi/Desktop/images/22062026/18/42/image_22062026_18_43_05_59706.jpg
MAIN: 2026-06-22 18:43:06,278 - INFO - duration: 0.8870856150024338
MAIN: 2026-06-22 18:43:06,278 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:44:05,410 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:44: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-06-22 18:44:06,103 - INFO - taking picture
MAIN: 2026-06-22 18:44:06,103 - INFO - we take 734 photos in this while loop
MAIN: 2026-06-22 18:44:06,103 - INFO - /home/pi/Desktop/images/22062026/18/43/image_22062026_18_44_05_59754.jpg
MAIN: 2026-06-22 18:44:06,103 - INFO - duration: 0.9576562570000533
MAIN: 2026-06-22 18:44:06,104 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/44'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:45:05,012 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:45: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-06-22 18:45:06,075 - INFO - taking picture
MAIN: 2026-06-22 18:45:06,075 - INFO - we take 735 photos in this while loop
MAIN: 2026-06-22 18:45:06,076 - INFO - /home/pi/Desktop/images/22062026/18/44/image_22062026_18_45_05_60060.jpg
MAIN: 2026-06-22 18:45:06,076 - INFO - duration: 0.8692497019947041
MAIN: 2026-06-22 18:45:06,076 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:46:05,014 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:46:05,240 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:46:05,896 - INFO - taking picture
MAIN: 2026-06-22 18:46:05,897 - INFO - we take 736 photos in this while loop
MAIN: 2026-06-22 18:46:05,897 - INFO - /home/pi/Desktop/images/22062026/18/45/image_22062026_18_46_05_59784.jpg
MAIN: 2026-06-22 18:46:05,897 - INFO - duration: 0.9063723020008183
MAIN: 2026-06-22 18:46:05,897 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:47:04,837 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:47:04,971 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:47:05,504 - INFO - taking picture
MAIN: 2026-06-22 18:47:05,504 - INFO - we take 737 photos in this while loop
MAIN: 2026-06-22 18:47:05,505 - INFO - /home/pi/Desktop/images/22062026/18/46/image_22062026_18_47_04_59598.jpg
MAIN: 2026-06-22 18:47:05,505 - INFO - duration: 0.9155476930027362
MAIN: 2026-06-22 18:47:05,505 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:48: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-06-22 18:48:05,866 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:48:06,524 - INFO - taking picture
MAIN: 2026-06-22 18:48:06,524 - INFO - we take 738 photos in this while loop
MAIN: 2026-06-22 18:48:06,524 - INFO - /home/pi/Desktop/images/22062026/18/47/image_22062026_18_48_05_61026.jpg
MAIN: 2026-06-22 18:48:06,524 - INFO - duration: 0.9092588210041868
MAIN: 2026-06-22 18:48:06,525 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:49: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-06-22 18:49:05,586 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:49:06,290 - INFO - taking picture
MAIN: 2026-06-22 18:49:06,291 - INFO - we take 739 photos in this while loop
MAIN: 2026-06-22 18:49:06,291 - INFO - /home/pi/Desktop/images/22062026/18/48/image_22062026_18_49_05_59757.jpg
MAIN: 2026-06-22 18:49:06,291 - INFO - duration: 0.9179130929987878
MAIN: 2026-06-22 18:49:06,291 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:50: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-06-22 18:50:06,246 - INFO - taking picture
MAIN: 2026-06-22 18:50:06,246 - INFO - we take 740 photos in this while loop
MAIN: 2026-06-22 18:50:06,246 - INFO - /home/pi/Desktop/images/22062026/18/49/image_22062026_18_50_05_59962.jpg
MAIN: 2026-06-22 18:50:06,247 - INFO - duration: 0.9112453019988607
MAIN: 2026-06-22 18:50:06,247 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/50'
MAIN: 2026-06-22 18:50:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:51: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-06-22 18:51: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-06-22 18:51:05,994 - INFO - taking picture
MAIN: 2026-06-22 18:51:05,994 - INFO - we take 741 photos in this while loop
MAIN: 2026-06-22 18:51:05,995 - INFO - /home/pi/Desktop/images/22062026/18/50/image_22062026_18_51_05_59722.jpg
MAIN: 2026-06-22 18:51:05,995 - INFO - duration: 0.9365415840002242
MAIN: 2026-06-22 18:51:05,995 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:52: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-06-22 18:52:05,251 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:52:05,960 - INFO - taking picture
MAIN: 2026-06-22 18:52:05,961 - INFO - we take 742 photos in this while loop
MAIN: 2026-06-22 18:52:05,961 - INFO - /home/pi/Desktop/images/22062026/18/51/image_22062026_18_52_05_59913.jpg
MAIN: 2026-06-22 18:52:05,961 - INFO - duration: 0.9894997119990876
MAIN: 2026-06-22 18:52:05,961 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/52'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:53:05,030 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:53:05,233 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:53:05,894 - INFO - taking picture
MAIN: 2026-06-22 18:53:05,894 - INFO - we take 743 photos in this while loop
MAIN: 2026-06-22 18:53:05,894 - INFO - /home/pi/Desktop/images/22062026/18/52/image_22062026_18_53_05_59979.jpg
MAIN: 2026-06-22 18:53:05,895 - INFO - duration: 0.9431212449999293
MAIN: 2026-06-22 18:53:05,895 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:54: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-06-22 18:54: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-06-22 18:54:05,650 - INFO - taking picture
MAIN: 2026-06-22 18:54:05,650 - INFO - we take 744 photos in this while loop
MAIN: 2026-06-22 18:54:05,650 - INFO - /home/pi/Desktop/images/22062026/18/53/image_22062026_18_54_04_59735.jpg
MAIN: 2026-06-22 18:54:05,651 - INFO - duration: 0.9638809509997373
MAIN: 2026-06-22 18:54:05,651 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 18:55:05,045 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:55: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-06-22 18:55:05,727 - INFO - taking picture
MAIN: 2026-06-22 18:55:05,728 - INFO - we take 745 photos in this while loop
MAIN: 2026-06-22 18:55:05,728 - INFO - /home/pi/Desktop/images/22062026/18/54/image_22062026_18_55_05_60136.jpg
MAIN: 2026-06-22 18:55:05,728 - INFO - duration: 0.9044243399985135
MAIN: 2026-06-22 18:55:05,728 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/55'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:56:04,996 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:56:05,640 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:56:05,657 - INFO - taking picture
MAIN: 2026-06-22 18:56:05,658 - INFO - we take 746 photos in this while loop
MAIN: 2026-06-22 18:56:05,658 - INFO - /home/pi/Desktop/images/22062026/18/55/image_22062026_18_56_04_59938.jpg
MAIN: 2026-06-22 18:56:05,658 - INFO - duration: 0.8961064480026835
MAIN: 2026-06-22 18:56:05,659 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:57:04,690 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:57:05,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-06-22 18:57:06,520 - INFO - taking picture
MAIN: 2026-06-22 18:57:06,521 - INFO - we take 747 photos in this while loop
MAIN: 2026-06-22 18:57:06,521 - INFO - /home/pi/Desktop/images/22062026/18/56/image_22062026_18_57_05_60842.jpg
MAIN: 2026-06-22 18:57:06,521 - INFO - duration: 0.9159423620003508
MAIN: 2026-06-22 18:57:06,521 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 18:58:05,141 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:58:05,540 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:58:06,200 - INFO - taking picture
MAIN: 2026-06-22 18:58:06,200 - INFO - we take 748 photos in this while loop
MAIN: 2026-06-22 18:58:06,200 - INFO - /home/pi/Desktop/images/22062026/18/57/image_22062026_18_58_05_59724.jpg
MAIN: 2026-06-22 18:58:06,200 - INFO - duration: 0.8703813920001267
MAIN: 2026-06-22 18:58:06,200 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 18:59:04,977 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 18:59:05,203 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 18:59:05,861 - INFO - taking picture
MAIN: 2026-06-22 18:59:05,862 - INFO - we take 749 photos in this while loop
MAIN: 2026-06-22 18:59:05,862 - INFO - /home/pi/Desktop/images/22062026/18/58/image_22062026_18_59_05_59593.jpg
MAIN: 2026-06-22 18:59:05,862 - INFO - duration: 0.9390393590001622
MAIN: 2026-06-22 18:59:05,862 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/18/59'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:00: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-06-22 19:00:05,346 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:00:05,798 - INFO - taking picture
MAIN: 2026-06-22 19:00:05,798 - INFO - we take 750 photos in this while loop
MAIN: 2026-06-22 19:00:05,798 - INFO - /home/pi/Desktop/images/22062026/18/59/image_22062026_19_00_05_59979.jpg
MAIN: 2026-06-22 19:00:05,798 - INFO - duration: 0.8957733510032995
MAIN: 2026-06-22 19:00:05,799 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/00'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:01:04,834 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:01:05,046 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:01:05,503 - INFO - taking picture
MAIN: 2026-06-22 19:01:05,504 - INFO - we take 751 photos in this while loop
MAIN: 2026-06-22 19:01:05,504 - INFO - /home/pi/Desktop/images/22062026/19/00/image_22062026_19_01_04_59669.jpg
MAIN: 2026-06-22 19:01:05,504 - INFO - duration: 0.9319666399969719
MAIN: 2026-06-22 19:01:05,504 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:02: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-06-22 19:02:05,800 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:02:06,504 - INFO - taking picture
MAIN: 2026-06-22 19:02:06,504 - INFO - we take 752 photos in this while loop
MAIN: 2026-06-22 19:02:06,504 - INFO - /home/pi/Desktop/images/22062026/19/01/image_22062026_19_02_05_60980.jpg
MAIN: 2026-06-22 19:02:06,505 - INFO - duration: 0.9522446129994933
MAIN: 2026-06-22 19:02:06,505 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/02'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:03: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-06-22 19:03:05,535 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:03:06,196 - INFO - taking picture
MAIN: 2026-06-22 19:03:06,196 - INFO - we take 753 photos in this while loop
MAIN: 2026-06-22 19:03:06,196 - INFO - /home/pi/Desktop/images/22062026/19/02/image_22062026_19_03_05_59755.jpg
MAIN: 2026-06-22 19:03:06,196 - INFO - duration: 0.8887495270028012
MAIN: 2026-06-22 19:03:06,197 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:04: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-06-22 19:04: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-06-22 19:04:05,884 - INFO - taking picture
MAIN: 2026-06-22 19:04:05,884 - INFO - we take 754 photos in this while loop
MAIN: 2026-06-22 19:04:05,884 - INFO - /home/pi/Desktop/images/22062026/19/03/image_22062026_19_04_05_59633.jpg
MAIN: 2026-06-22 19:04:05,885 - INFO - duration: 0.9432949090041802
MAIN: 2026-06-22 19:04:05,885 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/04'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:05:05,000 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:05:05,743 - INFO - taking picture
MAIN: 2026-06-22 19:05:05,743 - INFO - we take 755 photos in this while loop
MAIN: 2026-06-22 19:05:05,743 - INFO - /home/pi/Desktop/images/22062026/19/04/image_22062026_19_05_05_59807.jpg
MAIN: 2026-06-22 19:05:05,743 - INFO - duration: 0.9943160820039338
MAIN: 2026-06-22 19:05:05,744 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/05'
MAIN: 2026-06-22 19:05:05,805 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:06:04,776 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:06: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-06-22 19:06:05,446 - INFO - taking picture
MAIN: 2026-06-22 19:06:05,446 - INFO - we take 756 photos in this while loop
MAIN: 2026-06-22 19:06:05,446 - INFO - /home/pi/Desktop/images/22062026/19/05/image_22062026_19_06_04_59776.jpg
MAIN: 2026-06-22 19:06:05,446 - INFO - duration: 0.9209538689974579
MAIN: 2026-06-22 19:06:05,446 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:07: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-06-22 19:07:05,698 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:07:06,397 - INFO - taking picture
MAIN: 2026-06-22 19:07:06,397 - INFO - we take 757 photos in this while loop
MAIN: 2026-06-22 19:07:06,397 - INFO - /home/pi/Desktop/images/22062026/19/06/image_22062026_19_07_05_60960.jpg
MAIN: 2026-06-22 19:07:06,397 - INFO - duration: 0.911207844997989
MAIN: 2026-06-22 19:07:06,397 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/07'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:08:05,433 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:08:05,554 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:08:06,096 - INFO - taking picture
MAIN: 2026-06-22 19:08:06,096 - INFO - we take 758 photos in this while loop
MAIN: 2026-06-22 19:08:06,096 - INFO - /home/pi/Desktop/images/22062026/19/07/image_22062026_19_08_05_59666.jpg
MAIN: 2026-06-22 19:08:06,097 - INFO - duration: 0.9441641920057009
MAIN: 2026-06-22 19:08:06,097 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/08'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:09:05,146 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:09:05,453 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:09:05,813 - INFO - taking picture
MAIN: 2026-06-22 19:09:05,814 - INFO - we take 759 photos in this while loop
MAIN: 2026-06-22 19:09:05,814 - INFO - /home/pi/Desktop/images/22062026/19/08/image_22062026_19_09_05_59707.jpg
MAIN: 2026-06-22 19:09:05,814 - INFO - duration: 0.9536613629970816
MAIN: 2026-06-22 19:09:05,814 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/09'
MAIN: 2026-06-22 19:10:05,033 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:10:05,726 - INFO - taking picture
MAIN: 2026-06-22 19:10:05,726 - INFO - we take 760 photos in this while loop
MAIN: 2026-06-22 19:10:05,726 - INFO - /home/pi/Desktop/images/22062026/19/09/image_22062026_19_10_05_59918.jpg
MAIN: 2026-06-22 19:10:05,726 - INFO - duration: 0.9476602290014853
MAIN: 2026-06-22 19:10:05,727 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/10'
MAIN: 2026-06-22 19:10:06,083 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:11:04,689 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:11:05,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-06-22 19:11:06,646 - INFO - taking picture
MAIN: 2026-06-22 19:11:06,646 - INFO - we take 761 photos in this while loop
MAIN: 2026-06-22 19:11:06,647 - INFO - /home/pi/Desktop/images/22062026/19/10/image_22062026_19_11_05_60899.jpg
MAIN: 2026-06-22 19:11:06,647 - INFO - duration: 0.9683994469960453
MAIN: 2026-06-22 19:11:06,647 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 19:12: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-06-22 19:12:05,861 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:12:06,518 - INFO - taking picture
MAIN: 2026-06-22 19:12:06,518 - INFO - we take 762 photos in this while loop
MAIN: 2026-06-22 19:12:06,518 - INFO - /home/pi/Desktop/images/22062026/19/11/image_22062026_19_12_05_59918.jpg
MAIN: 2026-06-22 19:12:06,518 - INFO - duration: 0.9215499149941024
MAIN: 2026-06-22 19:12:06,518 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:13:04,984 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:13:05,424 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:13:06,132 - INFO - taking picture
MAIN: 2026-06-22 19:13:06,133 - INFO - we take 763 photos in this while loop
MAIN: 2026-06-22 19:13:06,133 - INFO - /home/pi/Desktop/images/22062026/19/12/image_22062026_19_13_05_59616.jpg
MAIN: 2026-06-22 19:13:06,133 - INFO - duration: 0.9195388169973739
MAIN: 2026-06-22 19:13:06,133 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:14:05,300 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:14: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-06-22 19:14:06,016 - INFO - taking picture
MAIN: 2026-06-22 19:14:06,017 - INFO - we take 764 photos in this while loop
MAIN: 2026-06-22 19:14:06,017 - INFO - /home/pi/Desktop/images/22062026/19/13/image_22062026_19_14_05_59804.jpg
MAIN: 2026-06-22 19:14:06,017 - INFO - duration: 0.9986648190024425
MAIN: 2026-06-22 19:14:06,017 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/14'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:15:05,273 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:15: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 ! 
MAIN: 2026-06-22 19:15:05,951 - INFO - taking picture
MAIN: 2026-06-22 19:15:05,951 - INFO - we take 765 photos in this while loop
MAIN: 2026-06-22 19:15:05,951 - INFO - /home/pi/Desktop/images/22062026/19/14/image_22062026_19_15_05_60026.jpg
MAIN: 2026-06-22 19:15:05,952 - INFO - duration: 0.9068933870003093
MAIN: 2026-06-22 19:15:05,952 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/15'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:16:05,150 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:16:05,710 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:16:05,815 - INFO - taking picture
MAIN: 2026-06-22 19:16:05,816 - INFO - we take 766 photos in this while loop
MAIN: 2026-06-22 19:16:05,816 - INFO - /home/pi/Desktop/images/22062026/19/15/image_22062026_19_16_05_59866.jpg
MAIN: 2026-06-22 19:16:05,816 - INFO - duration: 0.9051238769970951
MAIN: 2026-06-22 19:16:05,816 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 19:17:04,639 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:17: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-06-22 19:17:05,525 - INFO - taking picture
MAIN: 2026-06-22 19:17:05,525 - INFO - we take 767 photos in this while loop
MAIN: 2026-06-22 19:17:05,525 - INFO - /home/pi/Desktop/images/22062026/19/16/image_22062026_19_17_04_59609.jpg
MAIN: 2026-06-22 19:17:05,525 - INFO - duration: 1.004566078998323
MAIN: 2026-06-22 19:17:05,526 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/17'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:18:04,837 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:18: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-06-22 19:18:05,558 - INFO - taking picture
MAIN: 2026-06-22 19:18:05,559 - INFO - we take 768 photos in this while loop
MAIN: 2026-06-22 19:18:05,559 - INFO - /home/pi/Desktop/images/22062026/19/17/image_22062026_19_18_04_60053.jpg
MAIN: 2026-06-22 19:18:05,559 - INFO - duration: 0.9851422270003241
MAIN: 2026-06-22 19:18:05,559 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/18'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:19:05,005 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:19: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-06-22 19:19:06,460 - INFO - taking picture
MAIN: 2026-06-22 19:19:06,460 - INFO - we take 769 photos in this while loop
MAIN: 2026-06-22 19:19:06,461 - INFO - /home/pi/Desktop/images/22062026/19/18/image_22062026_19_19_05_60955.jpg
MAIN: 2026-06-22 19:19:06,461 - INFO - duration: 0.9308975349995308
MAIN: 2026-06-22 19:19:06,461 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:20:05,365 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:20: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-06-22 19:20:06,048 - INFO - taking picture
MAIN: 2026-06-22 19:20:06,048 - INFO - we take 770 photos in this while loop
MAIN: 2026-06-22 19:20:06,048 - INFO - /home/pi/Desktop/images/22062026/19/19/image_22062026_19_20_05_59610.jpg
MAIN: 2026-06-22 19:20:06,048 - INFO - duration: 0.9076019499989343
MAIN: 2026-06-22 19:20:06,048 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/20'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:21:05,134 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:21:05,395 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:21:05,802 - INFO - taking picture
MAIN: 2026-06-22 19:21:05,802 - INFO - we take 771 photos in this while loop
MAIN: 2026-06-22 19:21:05,802 - INFO - /home/pi/Desktop/images/22062026/19/20/image_22062026_19_21_05_59736.jpg
MAIN: 2026-06-22 19:21:05,802 - INFO - duration: 0.9254884870024398
MAIN: 2026-06-22 19:21:05,803 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:22:04,970 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:22:05,671 - INFO - taking picture
MAIN: 2026-06-22 19:22:05,672 - INFO - we take 772 photos in this while loop
MAIN: 2026-06-22 19:22:05,672 - INFO - /home/pi/Desktop/images/22062026/19/21/image_22062026_19_22_04_59843.jpg
MAIN: 2026-06-22 19:22:05,672 - INFO - duration: 0.9514781039979425
MAIN: 2026-06-22 19:22:05,672 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/22'
MAIN: 2026-06-22 19:22:05,857 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:23:04,972 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:23:05,877 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:23:06,535 - INFO - taking picture
MAIN: 2026-06-22 19:23:06,535 - INFO - we take 773 photos in this while loop
MAIN: 2026-06-22 19:23:06,535 - INFO - /home/pi/Desktop/images/22062026/19/22/image_22062026_19_23_05_60906.jpg
MAIN: 2026-06-22 19:23:06,535 - INFO - duration: 0.9083426549987053
MAIN: 2026-06-22 19:23:06,536 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 19:24:05,305 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:24:05,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-06-22 19:24:06,302 - INFO - taking picture
MAIN: 2026-06-22 19:24:06,303 - INFO - we take 774 photos in this while loop
MAIN: 2026-06-22 19:24:06,303 - INFO - /home/pi/Desktop/images/22062026/19/23/image_22062026_19_24_05_59759.jpg
MAIN: 2026-06-22 19:24:06,303 - INFO - duration: 0.9159831360011594
MAIN: 2026-06-22 19:24:06,303 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 19:25:05,129 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:25:05,559 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:25:06,253 - INFO - taking picture
MAIN: 2026-06-22 19:25:06,253 - INFO - we take 775 photos in this while loop
MAIN: 2026-06-22 19:25:06,253 - INFO - /home/pi/Desktop/images/22062026/19/24/image_22062026_19_25_05_59959.jpg
MAIN: 2026-06-22 19:25:06,253 - INFO - duration: 0.9066451559992856
MAIN: 2026-06-22 19:25:06,253 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/25'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:26:05,357 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:26:05,435 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:26:06,099 - INFO - taking picture
MAIN: 2026-06-22 19:26:06,099 - INFO - we take 776 photos in this while loop
MAIN: 2026-06-22 19:26:06,099 - INFO - /home/pi/Desktop/images/22062026/19/25/image_22062026_19_26_05_59802.jpg
MAIN: 2026-06-22 19:26:06,100 - INFO - duration: 0.9505701810048777
MAIN: 2026-06-22 19:26:06,100 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:27:04,876 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:27:05,293 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:27:05,602 - INFO - taking picture
MAIN: 2026-06-22 19:27:05,602 - INFO - we take 777 photos in this while loop
MAIN: 2026-06-22 19:27:05,602 - INFO - /home/pi/Desktop/images/22062026/19/26/image_22062026_19_27_04_59480.jpg
MAIN: 2026-06-22 19:27:05,602 - INFO - duration: 0.9721993999992264
MAIN: 2026-06-22 19:27:05,602 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:28: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-06-22 19:28:05,447 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:28:05,669 - INFO - taking picture
MAIN: 2026-06-22 19:28:05,669 - INFO - we take 778 photos in this while loop
MAIN: 2026-06-22 19:28:05,669 - INFO - /home/pi/Desktop/images/22062026/19/27/image_22062026_19_28_05_60149.jpg
MAIN: 2026-06-22 19:28:05,670 - INFO - duration: 0.889959991996875
MAIN: 2026-06-22 19:28:05,670 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 19:29:04,841 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:29: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-06-22 19:29:05,584 - INFO - taking picture
MAIN: 2026-06-22 19:29:05,584 - INFO - we take 779 photos in this while loop
MAIN: 2026-06-22 19:29:05,584 - INFO - /home/pi/Desktop/images/22062026/19/28/image_22062026_19_29_04_59820.jpg
MAIN: 2026-06-22 19:29:05,585 - INFO - duration: 0.9845196770038456
MAIN: 2026-06-22 19:29:05,585 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/29'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:30:04,879 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:30:05,155 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:30:05,559 - INFO - taking picture
MAIN: 2026-06-22 19:30:05,560 - INFO - we take 780 photos in this while loop
MAIN: 2026-06-22 19:30:05,560 - INFO - /home/pi/Desktop/images/22062026/19/29/image_22062026_19_30_04_60053.jpg
MAIN: 2026-06-22 19:30:05,560 - INFO - duration: 0.9059555619969615
MAIN: 2026-06-22 19:30:05,560 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/30'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:31:05,043 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:31:05,880 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:31:06,540 - INFO - taking picture
MAIN: 2026-06-22 19:31:06,540 - INFO - we take 781 photos in this while loop
MAIN: 2026-06-22 19:31:06,541 - INFO - /home/pi/Desktop/images/22062026/19/30/image_22062026_19_31_05_60957.jpg
MAIN: 2026-06-22 19:31:06,541 - INFO - duration: 0.9296048719988903
MAIN: 2026-06-22 19:31:06,541 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:32: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-06-22 19:32:05,721 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:32:06,383 - INFO - taking picture
MAIN: 2026-06-22 19:32:06,384 - INFO - we take 782 photos in this while loop
MAIN: 2026-06-22 19:32:06,384 - INFO - /home/pi/Desktop/images/22062026/19/31/image_22062026_19_32_05_59836.jpg
MAIN: 2026-06-22 19:32:06,384 - INFO - duration: 0.9365904790029163
MAIN: 2026-06-22 19:32:06,384 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:33: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-06-22 19:33:05,284 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:33:05,992 - INFO - taking picture
MAIN: 2026-06-22 19:33:05,992 - INFO - we take 783 photos in this while loop
MAIN: 2026-06-22 19:33:05,993 - INFO - /home/pi/Desktop/images/22062026/19/32/image_22062026_19_33_05_59583.jpg
MAIN: 2026-06-22 19:33:05,993 - INFO - duration: 0.9615010950001306
MAIN: 2026-06-22 19:33:05,993 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:34:05,332 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:34:05,676 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:34:06,032 - INFO - taking picture
MAIN: 2026-06-22 19:34:06,033 - INFO - we take 784 photos in this while loop
MAIN: 2026-06-22 19:34:06,033 - INFO - /home/pi/Desktop/images/22062026/19/33/image_22062026_19_34_05_60037.jpg
MAIN: 2026-06-22 19:34:06,033 - INFO - duration: 0.9642400790035026
MAIN: 2026-06-22 19:34:06,033 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 19:35:05,202 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:35: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-06-22 19:35:05,888 - INFO - taking picture
MAIN: 2026-06-22 19:35:05,888 - INFO - we take 785 photos in this while loop
MAIN: 2026-06-22 19:35:05,888 - INFO - /home/pi/Desktop/images/22062026/19/34/image_22062026_19_35_05_59905.jpg
MAIN: 2026-06-22 19:35:05,888 - INFO - duration: 0.9138847840004019
MAIN: 2026-06-22 19:35:05,889 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 19:36: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-06-22 19:36:05,065 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:36:05,651 - INFO - taking picture
MAIN: 2026-06-22 19:36:05,651 - INFO - we take 786 photos in this while loop
MAIN: 2026-06-22 19:36:05,651 - INFO - /home/pi/Desktop/images/22062026/19/35/image_22062026_19_36_04_59772.jpg
MAIN: 2026-06-22 19:36:05,651 - INFO - duration: 0.9043706410011509
MAIN: 2026-06-22 19:36:05,651 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/36'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:37: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-06-22 19:37:05,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-06-22 19:37:06,511 - INFO - taking picture
MAIN: 2026-06-22 19:37:06,511 - INFO - we take 787 photos in this while loop
MAIN: 2026-06-22 19:37:06,511 - INFO - /home/pi/Desktop/images/22062026/19/36/image_22062026_19_37_05_60832.jpg
MAIN: 2026-06-22 19:37:06,512 - INFO - duration: 0.9319481429993175
MAIN: 2026-06-22 19:37:06,512 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 19:38:05,285 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:38:05,603 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:38:06,260 - INFO - taking picture
MAIN: 2026-06-22 19:38:06,261 - INFO - we take 788 photos in this while loop
MAIN: 2026-06-22 19:38:06,261 - INFO - /home/pi/Desktop/images/22062026/19/37/image_22062026_19_38_05_59791.jpg
MAIN: 2026-06-22 19:38:06,261 - INFO - duration: 0.8899178989959182
MAIN: 2026-06-22 19:38:06,261 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 19:39:05,239 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:39:05,382 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:39:05,913 - INFO - taking picture
MAIN: 2026-06-22 19:39:05,914 - INFO - we take 789 photos in this while loop
MAIN: 2026-06-22 19:39:05,914 - INFO - /home/pi/Desktop/images/22062026/19/38/image_22062026_19_39_05_59614.jpg
MAIN: 2026-06-22 19:39:05,914 - INFO - duration: 0.9281079669963219
MAIN: 2026-06-22 19:39:05,914 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/39'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:40:05,105 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:40:05,790 - INFO - taking picture
MAIN: 2026-06-22 19:40:05,791 - INFO - we take 790 photos in this while loop
MAIN: 2026-06-22 19:40:05,791 - INFO - /home/pi/Desktop/images/22062026/19/39/image_22062026_19_40_05_59887.jpg
MAIN: 2026-06-22 19:40:05,791 - INFO - duration: 0.9170525040026405
MAIN: 2026-06-22 19:40:05,791 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/40'
MAIN: 2026-06-22 19:40:05,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:41:05,403 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:41: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-06-22 19:41:06,430 - INFO - taking picture
MAIN: 2026-06-22 19:41:06,430 - INFO - we take 791 photos in this while loop
MAIN: 2026-06-22 19:41:06,430 - INFO - /home/pi/Desktop/images/22062026/19/40/image_22062026_19_41_05_60688.jpg
MAIN: 2026-06-22 19:41:06,430 - INFO - duration: 0.86850569100352
MAIN: 2026-06-22 19:41:06,431 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:42: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-06-22 19:42:05,927 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:42:06,584 - INFO - taking picture
MAIN: 2026-06-22 19:42:06,584 - INFO - we take 792 photos in this while loop
MAIN: 2026-06-22 19:42:06,584 - INFO - /home/pi/Desktop/images/22062026/19/41/image_22062026_19_42_05_60093.jpg
MAIN: 2026-06-22 19:42:06,584 - INFO - duration: 0.9289036879999912
MAIN: 2026-06-22 19:42:06,584 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:43:05,082 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:43:05,397 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:43:06,057 - INFO - taking picture
MAIN: 2026-06-22 19:43:06,058 - INFO - we take 793 photos in this while loop
MAIN: 2026-06-22 19:43:06,058 - INFO - /home/pi/Desktop/images/22062026/19/42/image_22062026_19_43_05_59517.jpg
MAIN: 2026-06-22 19:43:06,058 - INFO - duration: 0.8847687090019463
MAIN: 2026-06-22 19:43:06,058 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:44: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-06-22 19:44:05,261 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:44:05,633 - INFO - taking picture
MAIN: 2026-06-22 19:44:05,633 - INFO - we take 794 photos in this while loop
MAIN: 2026-06-22 19:44:05,633 - INFO - /home/pi/Desktop/images/22062026/19/43/image_22062026_19_44_04_59536.jpg
MAIN: 2026-06-22 19:44:05,633 - INFO - duration: 0.9234288869993179
MAIN: 2026-06-22 19:44:05,634 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 19:45:05,537 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:45:05,802 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:45:06,507 - INFO - taking picture
MAIN: 2026-06-22 19:45:06,507 - INFO - we take 795 photos in this while loop
MAIN: 2026-06-22 19:45:06,507 - INFO - /home/pi/Desktop/images/22062026/19/44/image_22062026_19_45_05_60872.jpg
MAIN: 2026-06-22 19:45:06,507 - INFO - duration: 0.9250455420042272
MAIN: 2026-06-22 19:45:06,507 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19: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 ! 
MAIN: 2026-06-22 19:46:05,988 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:46:06,648 - INFO - taking picture
MAIN: 2026-06-22 19:46:06,648 - INFO - we take 796 photos in this while loop
MAIN: 2026-06-22 19:46:06,648 - INFO - /home/pi/Desktop/images/22062026/19/45/image_22062026_19_46_05_60133.jpg
MAIN: 2026-06-22 19:46:06,649 - INFO - duration: 0.9326613390003331
MAIN: 2026-06-22 19:46:06,649 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:47:05,417 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:47:05,492 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:47:06,204 - INFO - taking picture
MAIN: 2026-06-22 19:47:06,204 - INFO - we take 797 photos in this while loop
MAIN: 2026-06-22 19:47:06,204 - INFO - /home/pi/Desktop/images/22062026/19/46/image_22062026_19_47_05_59496.jpg
MAIN: 2026-06-22 19:47:06,205 - INFO - duration: 0.9923735150005086
MAIN: 2026-06-22 19:47:06,205 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:48:05,335 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:48: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-06-22 19:48:06,000 - INFO - taking picture
MAIN: 2026-06-22 19:48:06,000 - INFO - we take 798 photos in this while loop
MAIN: 2026-06-22 19:48:06,000 - INFO - /home/pi/Desktop/images/22062026/19/47/image_22062026_19_48_05_59877.jpg
MAIN: 2026-06-22 19:48:06,000 - INFO - duration: 0.9103996030025883
MAIN: 2026-06-22 19:48:06,001 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:49:04,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 ! 
MAIN: 2026-06-22 19:49:04,760 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:49:05,426 - INFO - taking picture
MAIN: 2026-06-22 19:49:05,426 - INFO - we take 799 photos in this while loop
MAIN: 2026-06-22 19:49:05,426 - INFO - /home/pi/Desktop/images/22062026/19/48/image_22062026_19_49_04_59423.jpg
MAIN: 2026-06-22 19:49:05,426 - INFO - duration: 0.9128159539977787
MAIN: 2026-06-22 19:49:05,427 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:50:04,799 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:50: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-06-22 19:50:05,526 - INFO - taking picture
MAIN: 2026-06-22 19:50:05,527 - INFO - we take 800 photos in this while loop
MAIN: 2026-06-22 19:50:05,527 - INFO - /home/pi/Desktop/images/22062026/19/49/image_22062026_19_50_04_60039.jpg
MAIN: 2026-06-22 19:50:05,527 - INFO - duration: 0.973604875995079
MAIN: 2026-06-22 19:50:05,527 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/50'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:51:04,967 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:51: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-06-22 19:51:06,427 - INFO - taking picture
MAIN: 2026-06-22 19:51:06,427 - INFO - we take 801 photos in this while loop
MAIN: 2026-06-22 19:51:06,427 - INFO - /home/pi/Desktop/images/22062026/19/50/image_22062026_19_51_05_60947.jpg
MAIN: 2026-06-22 19:51:06,427 - INFO - duration: 0.926067286003672
MAIN: 2026-06-22 19:51:06,428 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:52:05,535 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:52: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-06-22 19:52:06,296 - INFO - taking picture
MAIN: 2026-06-22 19:52:06,296 - INFO - we take 802 photos in this while loop
MAIN: 2026-06-22 19:52:06,296 - INFO - /home/pi/Desktop/images/22062026/19/51/image_22062026_19_52_05_59851.jpg
MAIN: 2026-06-22 19:52:06,296 - INFO - duration: 0.9438303209972219
MAIN: 2026-06-22 19:52:06,296 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/52'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:53: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-06-22 19:53: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-06-22 19:53:05,929 - INFO - taking picture
MAIN: 2026-06-22 19:53:05,929 - INFO - we take 803 photos in this while loop
MAIN: 2026-06-22 19:53:05,929 - INFO - /home/pi/Desktop/images/22062026/19/52/image_22062026_19_53_05_59589.jpg
MAIN: 2026-06-22 19:53:05,929 - INFO - duration: 0.9872861160038156
MAIN: 2026-06-22 19:53:05,930 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:54:05,164 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:54:05,560 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:54:05,845 - INFO - taking picture
MAIN: 2026-06-22 19:54:05,845 - INFO - we take 804 photos in this while loop
MAIN: 2026-06-22 19:54:05,845 - INFO - /home/pi/Desktop/images/22062026/19/53/image_22062026_19_54_05_59947.jpg
MAIN: 2026-06-22 19:54:05,845 - INFO - duration: 0.9556556589959655
MAIN: 2026-06-22 19:54:05,846 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/54'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:55:05,275 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:55:05,983 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:55:05,997 - INFO - taking picture
MAIN: 2026-06-22 19:55:05,998 - INFO - we take 805 photos in this while loop
MAIN: 2026-06-22 19:55:05,998 - INFO - /home/pi/Desktop/images/22062026/19/54/image_22062026_19_55_05_60136.jpg
MAIN: 2026-06-22 19:55:05,998 - INFO - duration: 0.9720087120003882
MAIN: 2026-06-22 19:55:05,999 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/55'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:56:04,925 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:56:05,341 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:56:05,999 - INFO - taking picture
MAIN: 2026-06-22 19:56:05,999 - INFO - we take 806 photos in this while loop
MAIN: 2026-06-22 19:56:05,999 - INFO - /home/pi/Desktop/images/22062026/19/55/image_22062026_19_56_05_60104.jpg
MAIN: 2026-06-22 19:56:05,999 - INFO - duration: 0.8689350599961472
MAIN: 2026-06-22 19:56:06,000 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:57:04,691 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:57:04,948 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:57:05,606 - INFO - taking picture
MAIN: 2026-06-22 19:57:05,606 - INFO - we take 807 photos in this while loop
MAIN: 2026-06-22 19:57:05,607 - INFO - /home/pi/Desktop/images/22062026/19/56/image_22062026_19_57_04_59576.jpg
MAIN: 2026-06-22 19:57:05,607 - INFO - duration: 0.8997802220037556
MAIN: 2026-06-22 19:57:05,607 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:58:05,294 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:58:05,870 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:58:06,529 - INFO - taking picture
MAIN: 2026-06-22 19:58:06,529 - INFO - we take 808 photos in this while loop
MAIN: 2026-06-22 19:58:06,529 - INFO - /home/pi/Desktop/images/22062026/19/57/image_22062026_19_58_05_60952.jpg
MAIN: 2026-06-22 19:58:06,529 - INFO - duration: 0.8697194350024802
MAIN: 2026-06-22 19:58:06,529 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/19/58'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 19:59:05,036 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 19:59:05,622 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 19:59:06,279 - INFO - taking picture
MAIN: 2026-06-22 19:59:06,279 - INFO - we take 809 photos in this while loop
MAIN: 2026-06-22 19:59:06,279 - INFO - /home/pi/Desktop/images/22062026/19/58/image_22062026_19_59_05_59747.jpg
MAIN: 2026-06-22 19:59:06,279 - INFO - duration: 0.8719633440050529
MAIN: 2026-06-22 19:59:06,280 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:00:05,348 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:00:05,646 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:00:06,030 - INFO - taking picture
MAIN: 2026-06-22 20:00:06,030 - INFO - we take 810 photos in this while loop
MAIN: 2026-06-22 20:00:06,030 - INFO - /home/pi/Desktop/images/22062026/19/59/image_22062026_20_00_05_59718.jpg
MAIN: 2026-06-22 20:00:06,030 - INFO - duration: 0.9046544849989004
MAIN: 2026-06-22 20:00:06,030 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:01: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-06-22 20:01:05,522 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:01:05,830 - INFO - taking picture
MAIN: 2026-06-22 20:01:05,830 - INFO - we take 811 photos in this while loop
MAIN: 2026-06-22 20:01:05,830 - INFO - /home/pi/Desktop/images/22062026/20/00/image_22062026_20_01_05_59717.jpg
MAIN: 2026-06-22 20:01:05,831 - INFO - duration: 0.9871622280043084
MAIN: 2026-06-22 20:01:05,831 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:02:05,180 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:02:05,836 - INFO - taking picture
MAIN: 2026-06-22 20:02:05,836 - INFO - we take 812 photos in this while loop
MAIN: 2026-06-22 20:02:05,836 - INFO - /home/pi/Desktop/images/22062026/20/01/image_22062026_20_02_05_60065.jpg
MAIN: 2026-06-22 20:02:05,836 - INFO - duration: 0.9277224600009504
MAIN: 2026-06-22 20:02:05,837 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/02'
MAIN: 2026-06-22 20:02:05,979 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:03:04,861 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:03:05,905 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:03:06,569 - INFO - taking picture
MAIN: 2026-06-22 20:03:06,569 - INFO - we take 813 photos in this while loop
MAIN: 2026-06-22 20:03:06,569 - INFO - /home/pi/Desktop/images/22062026/20/02/image_22062026_20_03_05_60740.jpg
MAIN: 2026-06-22 20:03:06,569 - INFO - duration: 0.9202567699976498
MAIN: 2026-06-22 20:03:06,569 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:04:05,285 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:04:05,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-06-22 20:04:06,320 - INFO - taking picture
MAIN: 2026-06-22 20:04:06,320 - INFO - we take 814 photos in this while loop
MAIN: 2026-06-22 20:04:06,320 - INFO - /home/pi/Desktop/images/22062026/20/03/image_22062026_20_04_05_59799.jpg
MAIN: 2026-06-22 20:04:06,320 - INFO - duration: 0.8717545800027438
MAIN: 2026-06-22 20:04:06,320 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:05:05,114 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:05:05,580 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:05:06,239 - INFO - taking picture
MAIN: 2026-06-22 20:05:06,239 - INFO - we take 815 photos in this while loop
MAIN: 2026-06-22 20:05:06,240 - INFO - /home/pi/Desktop/images/22062026/20/04/image_22062026_20_05_05_59919.jpg
MAIN: 2026-06-22 20:05:06,240 - INFO - duration: 0.8717323210003087
MAIN: 2026-06-22 20:05:06,240 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:06: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-06-22 20:06:05,430 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:06:05,958 - INFO - taking picture
MAIN: 2026-06-22 20:06:05,959 - INFO - we take 816 photos in this while loop
MAIN: 2026-06-22 20:06:05,959 - INFO - /home/pi/Desktop/images/22062026/20/05/image_22062026_20_06_05_59654.jpg
MAIN: 2026-06-22 20:06:05,959 - INFO - duration: 0.936191624001367
MAIN: 2026-06-22 20:06:05,959 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:07: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-06-22 20:07:05,191 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:07:05,795 - INFO - taking picture
MAIN: 2026-06-22 20:07:05,795 - INFO - we take 817 photos in this while loop
MAIN: 2026-06-22 20:07:05,795 - INFO - /home/pi/Desktop/images/22062026/20/06/image_22062026_20_07_05_59798.jpg
MAIN: 2026-06-22 20:07:05,796 - INFO - duration: 0.9744327730004443
MAIN: 2026-06-22 20:07:05,796 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/07'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:08:05,165 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:08: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 ! 
MAIN: 2026-06-22 20:08:05,863 - INFO - taking picture
MAIN: 2026-06-22 20:08:05,863 - INFO - we take 818 photos in this while loop
MAIN: 2026-06-22 20:08:05,863 - INFO - /home/pi/Desktop/images/22062026/20/07/image_22062026_20_08_05_60059.jpg
MAIN: 2026-06-22 20:08:05,864 - INFO - duration: 0.9833133459978853
MAIN: 2026-06-22 20:08:05,864 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/08'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:09:05,010 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:09:05,538 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:09:05,726 - INFO - taking picture
MAIN: 2026-06-22 20:09:05,726 - INFO - we take 819 photos in this while loop
MAIN: 2026-06-22 20:09:05,726 - INFO - /home/pi/Desktop/images/22062026/20/08/image_22062026_20_09_05_59865.jpg
MAIN: 2026-06-22 20:09:05,726 - INFO - duration: 0.980577579997771
MAIN: 2026-06-22 20:09:05,727 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/09'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:10:05,197 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:10:05,511 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:10:06,174 - INFO - taking picture
MAIN: 2026-06-22 20:10:06,174 - INFO - we take 820 photos in this while loop
MAIN: 2026-06-22 20:10:06,174 - INFO - /home/pi/Desktop/images/22062026/20/09/image_22062026_20_10_05_60539.jpg
MAIN: 2026-06-22 20:10:06,174 - INFO - duration: 0.8894232450038544
MAIN: 2026-06-22 20:10:06,174 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:11: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-06-22 20:11: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-06-22 20:11:06,109 - INFO - taking picture
MAIN: 2026-06-22 20:11:06,110 - INFO - we take 821 photos in this while loop
MAIN: 2026-06-22 20:11:06,110 - INFO - /home/pi/Desktop/images/22062026/20/10/image_22062026_20_11_05_59952.jpg
MAIN: 2026-06-22 20:11:06,110 - INFO - duration: 0.8724107200032449
MAIN: 2026-06-22 20:11:06,110 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:12:05,123 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:12: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-06-22 20:12:05,793 - INFO - taking picture
MAIN: 2026-06-22 20:12:05,793 - INFO - we take 822 photos in this while loop
MAIN: 2026-06-22 20:12:05,793 - INFO - /home/pi/Desktop/images/22062026/20/11/image_22062026_20_12_05_59617.jpg
MAIN: 2026-06-22 20:12:05,794 - INFO - duration: 0.9382808009977452
MAIN: 2026-06-22 20:12:05,794 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:13:04,861 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:13:05,253 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:13:05,571 - INFO - taking picture
MAIN: 2026-06-22 20:13:05,571 - INFO - we take 823 photos in this while loop
MAIN: 2026-06-22 20:13:05,571 - INFO - /home/pi/Desktop/images/22062026/20/12/image_22062026_20_13_04_59726.jpg
MAIN: 2026-06-22 20:13:05,571 - INFO - duration: 0.9890419119983562
MAIN: 2026-06-22 20:13:05,572 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:14:04,889 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:14:05,549 - INFO - taking picture
MAIN: 2026-06-22 20:14:05,549 - INFO - we take 824 photos in this while loop
MAIN: 2026-06-22 20:14:05,549 - INFO - /home/pi/Desktop/images/22062026/20/13/image_22062026_20_14_04_60096.jpg
MAIN: 2026-06-22 20:14:05,549 - INFO - duration: 0.8706843889958691
MAIN: 2026-06-22 20:14:05,550 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/14'
MAIN: 2026-06-22 20:14: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:15:05,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-06-22 20:15:06,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-06-22 20:15:06,537 - INFO - taking picture
MAIN: 2026-06-22 20:15:06,537 - INFO - we take 825 photos in this while loop
MAIN: 2026-06-22 20:15:06,537 - INFO - /home/pi/Desktop/images/22062026/20/14/image_22062026_20_15_05_60969.jpg
MAIN: 2026-06-22 20:15:06,537 - INFO - duration: 0.8885747380045359
MAIN: 2026-06-22 20:15:06,537 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/15'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:16: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-06-22 20:16:05,944 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:16:06,605 - INFO - taking picture
MAIN: 2026-06-22 20:16:06,605 - INFO - we take 826 photos in this while loop
MAIN: 2026-06-22 20:16:06,605 - INFO - /home/pi/Desktop/images/22062026/20/15/image_22062026_20_16_05_60017.jpg
MAIN: 2026-06-22 20:16:06,605 - INFO - duration: 0.9391626969954814
MAIN: 2026-06-22 20:16:06,606 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:17:04,870 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:17: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-06-22 20:17:05,534 - INFO - taking picture
MAIN: 2026-06-22 20:17:05,534 - INFO - we take 827 photos in this while loop
MAIN: 2026-06-22 20:17:05,535 - INFO - /home/pi/Desktop/images/22062026/20/16/image_22062026_20_17_04_58931.jpg
MAIN: 2026-06-22 20:17:05,535 - INFO - duration: 0.9368364200054202
MAIN: 2026-06-22 20:17:05,535 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:18:04,906 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:18:05,206 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:18:05,574 - INFO - taking picture
MAIN: 2026-06-22 20:18:05,574 - INFO - we take 828 photos in this while loop
MAIN: 2026-06-22 20:18:05,574 - INFO - /home/pi/Desktop/images/22062026/20/17/image_22062026_20_18_04_60041.jpg
MAIN: 2026-06-22 20:18:05,574 - INFO - duration: 0.9351506140010315
MAIN: 2026-06-22 20:18:05,575 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:19: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-06-22 20:19:05,032 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:19:05,676 - INFO - taking picture
MAIN: 2026-06-22 20:19:05,676 - INFO - we take 829 photos in this while loop
MAIN: 2026-06-22 20:19:05,676 - INFO - /home/pi/Desktop/images/22062026/20/18/image_22062026_20_19_05_60128.jpg
MAIN: 2026-06-22 20:19:05,676 - INFO - duration: 0.9084771190027823
MAIN: 2026-06-22 20:19:05,677 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:20:05,248 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:20:05,782 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:20:05,927 - INFO - taking picture
MAIN: 2026-06-22 20:20:05,927 - INFO - we take 830 photos in this while loop
MAIN: 2026-06-22 20:20:05,927 - INFO - /home/pi/Desktop/images/22062026/20/19/image_22062026_20_20_05_60254.jpg
MAIN: 2026-06-22 20:20:05,927 - INFO - duration: 0.9052829950014711
MAIN: 2026-06-22 20:20:05,928 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/20'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:21: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-06-22 20:21:05,547 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:21:05,791 - INFO - taking picture
MAIN: 2026-06-22 20:21:05,791 - INFO - we take 831 photos in this while loop
MAIN: 2026-06-22 20:21:05,791 - INFO - /home/pi/Desktop/images/22062026/20/20/image_22062026_20_21_05_59823.jpg
MAIN: 2026-06-22 20:21:05,791 - INFO - duration: 0.9461554359950242
MAIN: 2026-06-22 20:21:05,792 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:22:05,512 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:22: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-06-22 20:22:06,179 - INFO - taking picture
MAIN: 2026-06-22 20:22:06,179 - INFO - we take 832 photos in this while loop
MAIN: 2026-06-22 20:22:06,180 - INFO - /home/pi/Desktop/images/22062026/20/21/image_22062026_20_22_05_60418.jpg
MAIN: 2026-06-22 20:22:06,180 - INFO - duration: 0.9164758100014296
MAIN: 2026-06-22 20:22:06,180 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:23: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-06-22 20:23:05,493 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:23:06,155 - INFO - taking picture
MAIN: 2026-06-22 20:23:06,155 - INFO - we take 833 photos in this while loop
MAIN: 2026-06-22 20:23:06,155 - INFO - /home/pi/Desktop/images/22062026/20/22/image_22062026_20_23_05_59985.jpg
MAIN: 2026-06-22 20:23:06,155 - INFO - duration: 0.9063670929972432
MAIN: 2026-06-22 20:23:06,155 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:24:05,142 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:24: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-06-22 20:24:06,412 - INFO - taking picture
MAIN: 2026-06-22 20:24:06,413 - INFO - we take 834 photos in this while loop
MAIN: 2026-06-22 20:24:06,413 - INFO - /home/pi/Desktop/images/22062026/20/23/image_22062026_20_24_05_60228.jpg
MAIN: 2026-06-22 20:24:06,413 - INFO - duration: 0.9358842639994691
MAIN: 2026-06-22 20:24:06,413 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/24'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:25:04,886 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:25:05,216 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:25:05,590 - INFO - taking picture
MAIN: 2026-06-22 20:25:05,590 - INFO - we take 835 photos in this while loop
MAIN: 2026-06-22 20:25:05,590 - INFO - /home/pi/Desktop/images/22062026/20/24/image_22062026_20_25_04_59192.jpg
MAIN: 2026-06-22 20:25:05,590 - INFO - duration: 0.9212440150004113
MAIN: 2026-06-22 20:25:05,591 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/25'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:26:05,147 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:26:05,416 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:26:05,853 - INFO - taking picture
MAIN: 2026-06-22 20:26:05,854 - INFO - we take 836 photos in this while loop
MAIN: 2026-06-22 20:26:05,854 - INFO - /home/pi/Desktop/images/22062026/20/25/image_22062026_20_26_05_60208.jpg
MAIN: 2026-06-22 20:26:05,854 - INFO - duration: 0.9758146859967383
MAIN: 2026-06-22 20:26:05,854 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:27:05,104 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:27:05,364 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:27:05,799 - INFO - taking picture
MAIN: 2026-06-22 20:27:05,800 - INFO - we take 837 photos in this while loop
MAIN: 2026-06-22 20:27:05,800 - INFO - /home/pi/Desktop/images/22062026/20/26/image_22062026_20_27_05_59961.jpg
MAIN: 2026-06-22 20:27:05,800 - INFO - duration: 0.960431528998015
MAIN: 2026-06-22 20:27:05,800 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:28: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-06-22 20:28:05,617 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:28:05,931 - INFO - taking picture
MAIN: 2026-06-22 20:28:05,931 - INFO - we take 838 photos in this while loop
MAIN: 2026-06-22 20:28:05,932 - INFO - /home/pi/Desktop/images/22062026/20/27/image_22062026_20_28_05_60157.jpg
MAIN: 2026-06-22 20:28:05,932 - INFO - duration: 0.9341984260026948
MAIN: 2026-06-22 20:28:05,932 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:29:04,903 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:29:05,368 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:29:06,058 - INFO - taking picture
MAIN: 2026-06-22 20:29:06,059 - INFO - we take 839 photos in this while loop
MAIN: 2026-06-22 20:29:06,059 - INFO - /home/pi/Desktop/images/22062026/20/28/image_22062026_20_29_05_60144.jpg
MAIN: 2026-06-22 20:29:06,059 - INFO - duration: 0.9164139150016126
MAIN: 2026-06-22 20:29:06,059 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:30:05,499 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:30:05,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

MAIN: 2026-06-22 20:30:06,367 - INFO - taking picture
MAIN: 2026-06-22 20:30:06,367 - INFO - we take 840 photos in this while loop
MAIN: 2026-06-22 20:30:06,368 - INFO - /home/pi/Desktop/images/22062026/20/29/image_22062026_20_30_05_60267.jpg
MAIN: 2026-06-22 20:30:06,368 - INFO - duration: 0.9575992449972546
MAIN: 2026-06-22 20:30:06,368 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/30'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:31:04,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 ! 
MAIN: 2026-06-22 20:31:05,878 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:31:06,537 - INFO - taking picture
MAIN: 2026-06-22 20:31:06,537 - INFO - we take 841 photos in this while loop
MAIN: 2026-06-22 20:31:06,537 - INFO - /home/pi/Desktop/images/22062026/20/30/image_22062026_20_31_05_60202.jpg
MAIN: 2026-06-22 20:31:06,538 - INFO - duration: 0.9246666640028707
MAIN: 2026-06-22 20:31:06,538 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:32:05,470 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:32:05,926 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:32:06,587 - INFO - taking picture
MAIN: 2026-06-22 20:32:06,587 - INFO - we take 842 photos in this while loop
MAIN: 2026-06-22 20:32:06,587 - INFO - /home/pi/Desktop/images/22062026/20/31/image_22062026_20_32_05_60099.jpg
MAIN: 2026-06-22 20:32:06,587 - INFO - duration: 0.874834431000636
MAIN: 2026-06-22 20:32:06,588 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:33:04,851 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:33: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-06-22 20:33:05,520 - INFO - taking picture
MAIN: 2026-06-22 20:33:05,520 - INFO - we take 843 photos in this while loop
MAIN: 2026-06-22 20:33:05,520 - INFO - /home/pi/Desktop/images/22062026/20/32/image_22062026_20_33_04_58863.jpg
MAIN: 2026-06-22 20:33:05,520 - INFO - duration: 0.9440167870052392
MAIN: 2026-06-22 20:33:05,521 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:34:05,275 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:34:05,781 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:34:05,941 - INFO - taking picture
MAIN: 2026-06-22 20:34:05,942 - INFO - we take 844 photos in this while loop
MAIN: 2026-06-22 20:34:05,942 - INFO - /home/pi/Desktop/images/22062026/20/33/image_22062026_20_34_05_60437.jpg
MAIN: 2026-06-22 20:34:05,942 - INFO - duration: 0.9277867230048287
MAIN: 2026-06-22 20:34:05,942 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/34'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:35: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-06-22 20:35:05,962 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:35:06,178 - INFO - taking picture
MAIN: 2026-06-22 20:35:06,178 - INFO - we take 845 photos in this while loop
MAIN: 2026-06-22 20:35:06,179 - INFO - /home/pi/Desktop/images/22062026/20/34/image_22062026_20_35_05_60216.jpg
MAIN: 2026-06-22 20:35:06,179 - INFO - duration: 0.9485574310019729
MAIN: 2026-06-22 20:35:06,179 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/35'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:36:05,106 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:36:05,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-06-22 20:36:06,576 - INFO - taking picture
MAIN: 2026-06-22 20:36:06,576 - INFO - we take 846 photos in this while loop
MAIN: 2026-06-22 20:36:06,576 - INFO - /home/pi/Desktop/images/22062026/20/35/image_22062026_20_36_05_60430.jpg
MAIN: 2026-06-22 20:36:06,576 - INFO - duration: 0.9158947510004509
MAIN: 2026-06-22 20:36:06,577 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/36'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:37: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-06-22 20:37:04,927 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:37:05,634 - INFO - taking picture
MAIN: 2026-06-22 20:37:05,634 - INFO - we take 847 photos in this while loop
MAIN: 2026-06-22 20:37:05,634 - INFO - /home/pi/Desktop/images/22062026/20/36/image_22062026_20_37_04_58959.jpg
MAIN: 2026-06-22 20:37:05,635 - INFO - duration: 1.014558450995537
MAIN: 2026-06-22 20:37:05,635 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:38: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-06-22 20:38:05,387 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:38:06,042 - INFO - taking picture
MAIN: 2026-06-22 20:38:06,042 - INFO - we take 848 photos in this while loop
MAIN: 2026-06-22 20:38:06,042 - INFO - /home/pi/Desktop/images/22062026/20/37/image_22062026_20_38_05_60495.jpg
MAIN: 2026-06-22 20:38:06,042 - INFO - duration: 0.9269608639951912
MAIN: 2026-06-22 20:38:06,042 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:39: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-06-22 20:39:05,442 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:39:06,100 - INFO - taking picture
MAIN: 2026-06-22 20:39:06,100 - INFO - we take 849 photos in this while loop
MAIN: 2026-06-22 20:39:06,100 - INFO - /home/pi/Desktop/images/22062026/20/38/image_22062026_20_39_05_60048.jpg
MAIN: 2026-06-22 20:39:06,100 - INFO - duration: 0.9363709499957622
MAIN: 2026-06-22 20:39:06,101 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:40:05,551 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:40:05,838 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:40:06,236 - INFO - taking picture
MAIN: 2026-06-22 20:40:06,237 - INFO - we take 850 photos in this while loop
MAIN: 2026-06-22 20:40:06,237 - INFO - /home/pi/Desktop/images/22062026/20/39/image_22062026_20_40_05_60163.jpg
MAIN: 2026-06-22 20:40:06,237 - INFO - duration: 0.9089262170018628
MAIN: 2026-06-22 20:40:06,238 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:41:05,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-06-22 20:41:05,777 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:41:06,378 - INFO - taking picture
MAIN: 2026-06-22 20:41:06,378 - INFO - we take 851 photos in this while loop
MAIN: 2026-06-22 20:41:06,378 - INFO - /home/pi/Desktop/images/22062026/20/40/image_22062026_20_41_05_60113.jpg
MAIN: 2026-06-22 20:41:06,379 - INFO - duration: 0.9367514010009472
MAIN: 2026-06-22 20:41:06,379 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:42:04,806 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:42: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-06-22 20:42:05,471 - INFO - taking picture
MAIN: 2026-06-22 20:42:05,471 - INFO - we take 852 photos in this while loop
MAIN: 2026-06-22 20:42:05,471 - INFO - /home/pi/Desktop/images/22062026/20/41/image_22062026_20_42_04_59102.jpg
MAIN: 2026-06-22 20:42:05,472 - INFO - duration: 0.9268132040015189
MAIN: 2026-06-22 20:42:05,472 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:43:04,948 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:43:04,957 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:43:05,612 - INFO - taking picture
MAIN: 2026-06-22 20:43:05,612 - INFO - we take 853 photos in this while loop
MAIN: 2026-06-22 20:43:05,612 - INFO - /home/pi/Desktop/images/22062026/20/42/image_22062026_20_43_04_60155.jpg
MAIN: 2026-06-22 20:43:05,612 - INFO - duration: 0.911975890994654
MAIN: 2026-06-22 20:43:05,613 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:44:05,178 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:44:05,344 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:44:05,892 - INFO - taking picture
MAIN: 2026-06-22 20:44:05,893 - INFO - we take 854 photos in this while loop
MAIN: 2026-06-22 20:44:05,893 - INFO - /home/pi/Desktop/images/22062026/20/43/image_22062026_20_44_05_60206.jpg
MAIN: 2026-06-22 20:44:05,893 - INFO - duration: 0.9866096760015353
MAIN: 2026-06-22 20:44:05,893 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/44'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:45:05,373 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:45: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-06-22 20:45:06,103 - INFO - taking picture
MAIN: 2026-06-22 20:45:06,103 - INFO - we take 855 photos in this while loop
MAIN: 2026-06-22 20:45:06,103 - INFO - /home/pi/Desktop/images/22062026/20/44/image_22062026_20_45_05_60266.jpg
MAIN: 2026-06-22 20:45:06,103 - INFO - duration: 0.9304280190044665
MAIN: 2026-06-22 20:45:06,103 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:46:05,560 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:46:05,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-06-22 20:46:06,229 - INFO - taking picture
MAIN: 2026-06-22 20:46:06,229 - INFO - we take 856 photos in this while loop
MAIN: 2026-06-22 20:46:06,229 - INFO - /home/pi/Desktop/images/22062026/20/45/image_22062026_20_46_05_60118.jpg
MAIN: 2026-06-22 20:46:06,229 - INFO - duration: 0.937690250997548
MAIN: 2026-06-22 20:46:06,229 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:47:05,533 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:47:05,631 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:47:06,293 - INFO - taking picture
MAIN: 2026-06-22 20:47:06,293 - INFO - we take 857 photos in this while loop
MAIN: 2026-06-22 20:47:06,293 - INFO - /home/pi/Desktop/images/22062026/20/46/image_22062026_20_47_05_60065.jpg
MAIN: 2026-06-22 20:47:06,294 - INFO - duration: 0.937063073994068
MAIN: 2026-06-22 20:47:06,294 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:48:04,990 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:48: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-06-22 20:48:06,305 - INFO - taking picture
MAIN: 2026-06-22 20:48:06,305 - INFO - we take 858 photos in this while loop
MAIN: 2026-06-22 20:48:06,305 - INFO - /home/pi/Desktop/images/22062026/20/47/image_22062026_20_48_05_60071.jpg
MAIN: 2026-06-22 20:48:06,305 - INFO - duration: 0.8776572319984552
MAIN: 2026-06-22 20:48:06,306 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:49:04,807 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:49: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-06-22 20:49:06,414 - INFO - taking picture
MAIN: 2026-06-22 20:49:06,414 - INFO - we take 859 photos in this while loop
MAIN: 2026-06-22 20:49:06,414 - INFO - /home/pi/Desktop/images/22062026/20/48/image_22062026_20_49_05_60064.jpg
MAIN: 2026-06-22 20:49:06,415 - INFO - duration: 0.922541721003654
MAIN: 2026-06-22 20:49:06,415 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:50:04,839 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:50:05,532 - INFO - taking picture
MAIN: 2026-06-22 20:50:05,532 - INFO - we take 860 photos in this while loop
MAIN: 2026-06-22 20:50:05,533 - INFO - /home/pi/Desktop/images/22062026/20/49/image_22062026_20_50_04_59124.jpg
MAIN: 2026-06-22 20:50:05,533 - INFO - duration: 0.9166184370042174
MAIN: 2026-06-22 20:50:05,533 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/50'
MAIN: 2026-06-22 20:50:05,706 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20: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-06-22 20:51:05,162 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:51:05,627 - INFO - taking picture
MAIN: 2026-06-22 20:51:05,627 - INFO - we take 861 photos in this while loop
MAIN: 2026-06-22 20:51:05,628 - INFO - /home/pi/Desktop/images/22062026/20/50/image_22062026_20_51_04_60071.jpg
MAIN: 2026-06-22 20:51:05,628 - INFO - duration: 0.9405139339942252
MAIN: 2026-06-22 20:51:05,628 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 20:52:05,164 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:52:05,822 - INFO - taking picture
MAIN: 2026-06-22 20:52:05,822 - INFO - we take 862 photos in this while loop
MAIN: 2026-06-22 20:52:05,822 - INFO - /home/pi/Desktop/images/22062026/20/51/image_22062026_20_52_05_60230.jpg
MAIN: 2026-06-22 20:52:05,822 - INFO - duration: 0.904454709001584
MAIN: 2026-06-22 20:52:05,823 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/52'
MAIN: 2026-06-22 20:52: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-06-22 20:53:05,156 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:53:05,815 - INFO - taking picture
MAIN: 2026-06-22 20:53:05,815 - INFO - we take 863 photos in this while loop
MAIN: 2026-06-22 20:53:05,815 - INFO - /home/pi/Desktop/images/22062026/20/52/image_22062026_20_53_05_59959.jpg
MAIN: 2026-06-22 20:53:05,815 - INFO - duration: 0.9373295309997047
MAIN: 2026-06-22 20:53:05,815 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/53'
MAIN: 2026-06-22 20:53:05,842 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:54:05,242 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:54:05,323 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:54:05,944 - INFO - taking picture
MAIN: 2026-06-22 20:54:05,944 - INFO - we take 864 photos in this while loop
MAIN: 2026-06-22 20:54:05,944 - INFO - /home/pi/Desktop/images/22062026/20/53/image_22062026_20_54_05_60099.jpg
MAIN: 2026-06-22 20:54:05,944 - INFO - duration: 0.9665904769935878
MAIN: 2026-06-22 20:54:05,945 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/54'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:55:05,283 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:55: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-06-22 20:55:06,449 - INFO - taking picture
MAIN: 2026-06-22 20:55:06,449 - INFO - we take 865 photos in this while loop
MAIN: 2026-06-22 20:55:06,449 - INFO - /home/pi/Desktop/images/22062026/20/54/image_22062026_20_55_05_60544.jpg
MAIN: 2026-06-22 20:55:06,449 - INFO - duration: 0.9273705589948804
MAIN: 2026-06-22 20:55:06,449 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/55'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:56:05,532 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:56:05,885 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:56:06,592 - INFO - taking picture
MAIN: 2026-06-22 20:56:06,593 - INFO - we take 866 photos in this while loop
MAIN: 2026-06-22 20:56:06,593 - INFO - /home/pi/Desktop/images/22062026/20/55/image_22062026_20_56_05_60132.jpg
MAIN: 2026-06-22 20:56:06,593 - INFO - duration: 0.9389993750010035
MAIN: 2026-06-22 20:56:06,593 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:57:05,292 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:57:05,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-06-22 20:57:06,602 - INFO - taking picture
MAIN: 2026-06-22 20:57:06,602 - INFO - we take 867 photos in this while loop
MAIN: 2026-06-22 20:57:06,602 - INFO - /home/pi/Desktop/images/22062026/20/56/image_22062026_20_57_05_60028.jpg
MAIN: 2026-06-22 20:57:06,602 - INFO - duration: 0.9196913909981959
MAIN: 2026-06-22 20:57:06,603 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:58:04,998 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:58:05,639 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:58:05,663 - INFO - taking picture
MAIN: 2026-06-22 20:58:05,664 - INFO - we take 868 photos in this while loop
MAIN: 2026-06-22 20:58:05,664 - INFO - /home/pi/Desktop/images/22062026/20/57/image_22062026_20_58_04_59078.jpg
MAIN: 2026-06-22 20:58:05,664 - INFO - duration: 0.9029749290057225
MAIN: 2026-06-22 20:58:05,665 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/58'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 20:59:04,641 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 20:59:05,126 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 20:59:05,834 - INFO - taking picture
MAIN: 2026-06-22 20:59:05,834 - INFO - we take 869 photos in this while loop
MAIN: 2026-06-22 20:59:05,834 - INFO - /home/pi/Desktop/images/22062026/20/58/image_22062026_20_59_05_60136.jpg
MAIN: 2026-06-22 20:59:05,834 - INFO - duration: 0.9359229010005947
MAIN: 2026-06-22 20:59:05,834 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/20/59'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:00:05,513 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:00:05,909 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:00:06,249 - INFO - taking picture
MAIN: 2026-06-22 21:00:06,250 - INFO - we take 870 photos in this while loop
MAIN: 2026-06-22 21:00:06,250 - INFO - /home/pi/Desktop/images/22062026/20/59/image_22062026_21_00_05_60362.jpg
MAIN: 2026-06-22 21:00:06,250 - INFO - duration: 0.9889690429990878
MAIN: 2026-06-22 21:00:06,251 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/00'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:01:04,574 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:01: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-06-22 21:01:06,255 - INFO - taking picture
MAIN: 2026-06-22 21:01:06,255 - INFO - we take 871 photos in this while loop
MAIN: 2026-06-22 21:01:06,255 - INFO - /home/pi/Desktop/images/22062026/21/00/image_22062026_21_01_05_60070.jpg
MAIN: 2026-06-22 21:01:06,256 - INFO - duration: 0.9236331319989404
MAIN: 2026-06-22 21:01:06,256 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:02:05,010 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:02:05,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-06-22 21:02:06,518 - INFO - taking picture
MAIN: 2026-06-22 21:02:06,518 - INFO - we take 872 photos in this while loop
MAIN: 2026-06-22 21:02:06,519 - INFO - /home/pi/Desktop/images/22062026/21/01/image_22062026_21_02_05_60260.jpg
MAIN: 2026-06-22 21:02:06,519 - INFO - duration: 0.9268184739994467
MAIN: 2026-06-22 21:02:06,519 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/02'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:03:04,789 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:03: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-06-22 21:03:05,460 - INFO - taking picture
MAIN: 2026-06-22 21:03:05,460 - INFO - we take 873 photos in this while loop
MAIN: 2026-06-22 21:03:05,460 - INFO - /home/pi/Desktop/images/22062026/21/02/image_22062026_21_03_04_58925.jpg
MAIN: 2026-06-22 21:03:05,460 - INFO - duration: 0.9427502120015561
MAIN: 2026-06-22 21:03:05,461 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:04:04,946 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:04: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-06-22 21:04:05,641 - INFO - taking picture
MAIN: 2026-06-22 21:04:05,641 - INFO - we take 874 photos in this while loop
MAIN: 2026-06-22 21:04:05,641 - INFO - /home/pi/Desktop/images/22062026/21/03/image_22062026_21_04_04_60161.jpg
MAIN: 2026-06-22 21:04:05,642 - INFO - duration: 0.9620343850037898
MAIN: 2026-06-22 21:04:05,642 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:05:05,269 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:05:05,471 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:05:05,936 - INFO - taking picture
MAIN: 2026-06-22 21:05:05,936 - INFO - we take 875 photos in this while loop
MAIN: 2026-06-22 21:05:05,936 - INFO - /home/pi/Desktop/images/22062026/21/04/image_22062026_21_05_05_60376.jpg
MAIN: 2026-06-22 21:05:05,936 - INFO - duration: 0.8802296909998404
MAIN: 2026-06-22 21:05:05,937 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/05'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:06:05,284 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:06: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-06-22 21:06:05,996 - INFO - taking picture
MAIN: 2026-06-22 21:06:05,997 - INFO - we take 876 photos in this while loop
MAIN: 2026-06-22 21:06:05,997 - INFO - /home/pi/Desktop/images/22062026/21/05/image_22062026_21_06_05_59962.jpg
MAIN: 2026-06-22 21:06:05,997 - INFO - duration: 0.9786728800027049
MAIN: 2026-06-22 21:06:05,997 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:07: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-06-22 21:07: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-06-22 21:07:06,265 - INFO - taking picture
MAIN: 2026-06-22 21:07:06,265 - INFO - we take 877 photos in this while loop
MAIN: 2026-06-22 21:07:06,266 - INFO - /home/pi/Desktop/images/22062026/21/06/image_22062026_21_07_05_60321.jpg
MAIN: 2026-06-22 21:07:06,266 - INFO - duration: 0.9261075579997851
MAIN: 2026-06-22 21:07:06,266 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/07'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:08:05,060 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:08:05,582 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:08:06,336 - INFO - taking picture
MAIN: 2026-06-22 21:08:06,336 - INFO - we take 878 photos in this while loop
MAIN: 2026-06-22 21:08:06,336 - INFO - /home/pi/Desktop/images/22062026/21/07/image_22062026_21_08_05_60024.jpg
MAIN: 2026-06-22 21:08:06,336 - INFO - duration: 0.971787898997718
MAIN: 2026-06-22 21:08:06,336 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/08'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:09:04,799 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:09:05,633 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:09:06,293 - INFO - taking picture
MAIN: 2026-06-22 21:09:06,293 - INFO - we take 879 photos in this while loop
MAIN: 2026-06-22 21:09:06,293 - INFO - /home/pi/Desktop/images/22062026/21/08/image_22062026_21_09_05_59996.jpg
MAIN: 2026-06-22 21:09:06,293 - INFO - duration: 0.9327422400019714
MAIN: 2026-06-22 21:09:06,293 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:10:05,363 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:10: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-06-22 21:10:06,467 - INFO - taking picture
MAIN: 2026-06-22 21:10:06,467 - INFO - we take 880 photos in this while loop
MAIN: 2026-06-22 21:10:06,467 - INFO - /home/pi/Desktop/images/22062026/21/09/image_22062026_21_10_05_60235.jpg
MAIN: 2026-06-22 21:10:06,467 - INFO - duration: 0.8710984459976316
MAIN: 2026-06-22 21:10:06,467 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:11:05,142 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:11:05,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-06-22 21:11:06,640 - INFO - taking picture
MAIN: 2026-06-22 21:11:06,641 - INFO - we take 881 photos in this while loop
MAIN: 2026-06-22 21:11:06,641 - INFO - /home/pi/Desktop/images/22062026/21/10/image_22062026_21_11_05_60122.jpg
MAIN: 2026-06-22 21:11:06,641 - INFO - duration: 0.9223849310001242
MAIN: 2026-06-22 21:11:06,641 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:12: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-06-22 21:12:05,452 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:12:05,560 - INFO - taking picture
MAIN: 2026-06-22 21:12:05,561 - INFO - we take 882 photos in this while loop
MAIN: 2026-06-22 21:12:05,561 - INFO - /home/pi/Desktop/images/22062026/21/11/image_22062026_21_12_04_58904.jpg
MAIN: 2026-06-22 21:12:05,561 - INFO - duration: 0.9377807059936458
MAIN: 2026-06-22 21:12:05,561 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:13:05,002 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:13: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-06-22 21:13:05,667 - INFO - taking picture
MAIN: 2026-06-22 21:13:05,667 - INFO - we take 883 photos in this while loop
MAIN: 2026-06-22 21:13:05,667 - INFO - /home/pi/Desktop/images/22062026/21/12/image_22062026_21_13_05_60110.jpg
MAIN: 2026-06-22 21:13:05,667 - INFO - duration: 0.9337748019970604
MAIN: 2026-06-22 21:13:05,668 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:14: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-06-22 21:14:05,469 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:14:05,845 - INFO - taking picture
MAIN: 2026-06-22 21:14:05,845 - INFO - we take 884 photos in this while loop
MAIN: 2026-06-22 21:14:05,845 - INFO - /home/pi/Desktop/images/22062026/21/13/image_22062026_21_14_05_60182.jpg
MAIN: 2026-06-22 21:14:05,845 - INFO - duration: 0.9290027050010394
MAIN: 2026-06-22 21:14:05,846 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/14'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:15:05,256 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:15:05,860 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:15:05,941 - INFO - taking picture
MAIN: 2026-06-22 21:15:05,941 - INFO - we take 885 photos in this while loop
MAIN: 2026-06-22 21:15:05,942 - INFO - /home/pi/Desktop/images/22062026/21/14/image_22062026_21_15_05_60108.jpg
MAIN: 2026-06-22 21:15:05,942 - INFO - duration: 0.9175116999977035
MAIN: 2026-06-22 21:15:05,942 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:16: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-06-22 21:16:05,179 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:16:05,890 - INFO - taking picture
MAIN: 2026-06-22 21:16:05,891 - INFO - we take 886 photos in this while loop
MAIN: 2026-06-22 21:16:05,891 - INFO - /home/pi/Desktop/images/22062026/21/15/image_22062026_21_16_05_59858.jpg
MAIN: 2026-06-22 21:16:05,891 - INFO - duration: 1.0077190380034153
MAIN: 2026-06-22 21:16:05,891 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:17: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-06-22 21:17:05,452 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:17:06,111 - INFO - taking picture
MAIN: 2026-06-22 21:17:06,111 - INFO - we take 887 photos in this while loop
MAIN: 2026-06-22 21:17:06,111 - INFO - /home/pi/Desktop/images/22062026/21/16/image_22062026_21_17_05_60357.jpg
MAIN: 2026-06-22 21:17:06,111 - INFO - duration: 0.8701860590008437
MAIN: 2026-06-22 21:17:06,112 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/17'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:18: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-06-22 21:18: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-06-22 21:18:05,947 - INFO - taking picture
MAIN: 2026-06-22 21:18:05,947 - INFO - we take 888 photos in this while loop
MAIN: 2026-06-22 21:18:05,947 - INFO - /home/pi/Desktop/images/22062026/21/17/image_22062026_21_18_05_59775.jpg
MAIN: 2026-06-22 21:18:05,948 - INFO - duration: 0.9309523010015255
MAIN: 2026-06-22 21:18:05,948 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:19:05,106 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:19: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-06-22 21:19:05,821 - INFO - taking picture
MAIN: 2026-06-22 21:19:05,821 - INFO - we take 889 photos in this while loop
MAIN: 2026-06-22 21:19:05,822 - INFO - /home/pi/Desktop/images/22062026/21/18/image_22062026_21_19_05_59800.jpg
MAIN: 2026-06-22 21:19:05,822 - INFO - duration: 1.0042650559989852
MAIN: 2026-06-22 21:19:05,822 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:20: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-06-22 21:20:05,863 - INFO - taking picture
MAIN: 2026-06-22 21:20:05,863 - INFO - we take 890 photos in this while loop
MAIN: 2026-06-22 21:20:05,864 - INFO - /home/pi/Desktop/images/22062026/21/19/image_22062026_21_20_05_60046.jpg
MAIN: 2026-06-22 21:20:05,864 - INFO - duration: 0.9995773450064007
MAIN: 2026-06-22 21:20:05,864 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/20'
MAIN: 2026-06-22 21:20:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:21:05,057 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:21:05,718 - INFO - taking picture
MAIN: 2026-06-22 21:21:05,718 - INFO - we take 891 photos in this while loop
MAIN: 2026-06-22 21:21:05,718 - INFO - /home/pi/Desktop/images/22062026/21/20/image_22062026_21_21_05_59927.jpg
MAIN: 2026-06-22 21:21:05,719 - INFO - duration: 0.9274485220012139
MAIN: 2026-06-22 21:21:05,719 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/21'
MAIN: 2026-06-22 21:21:05,774 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:22:04,928 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:22:04,936 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:22:05,590 - INFO - taking picture
MAIN: 2026-06-22 21:22:05,591 - INFO - we take 892 photos in this while loop
MAIN: 2026-06-22 21:22:05,591 - INFO - /home/pi/Desktop/images/22062026/21/21/image_22062026_21_22_04_59882.jpg
MAIN: 2026-06-22 21:22:05,591 - INFO - duration: 0.917159440999967
MAIN: 2026-06-22 21:22:05,591 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:23:05,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 ! 
MAIN: 2026-06-22 21:23: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-06-22 21:23:06,450 - INFO - taking picture
MAIN: 2026-06-22 21:23:06,451 - INFO - we take 893 photos in this while loop
MAIN: 2026-06-22 21:23:06,451 - INFO - /home/pi/Desktop/images/22062026/21/22/image_22062026_21_23_05_60842.jpg
MAIN: 2026-06-22 21:23:06,451 - INFO - duration: 0.9345582409951021
MAIN: 2026-06-22 21:23:06,451 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/23'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:24:05,387 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:24:05,563 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:24:06,225 - INFO - taking picture
MAIN: 2026-06-22 21:24:06,225 - INFO - we take 894 photos in this while loop
MAIN: 2026-06-22 21:24:06,225 - INFO - /home/pi/Desktop/images/22062026/21/23/image_22062026_21_24_05_59783.jpg
MAIN: 2026-06-22 21:24:06,225 - INFO - duration: 0.9261372839973774
MAIN: 2026-06-22 21:24:06,226 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/24'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:25: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-06-22 21:25:05,564 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:25:05,930 - INFO - taking picture
MAIN: 2026-06-22 21:25:05,930 - INFO - we take 895 photos in this while loop
MAIN: 2026-06-22 21:25:05,930 - INFO - /home/pi/Desktop/images/22062026/21/24/image_22062026_21_25_05_59673.jpg
MAIN: 2026-06-22 21:25:05,931 - INFO - duration: 0.9577457039995352
MAIN: 2026-06-22 21:25:05,931 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/25'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:26: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-06-22 21:26:06,073 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:26:06,415 - INFO - taking picture
MAIN: 2026-06-22 21:26:06,416 - INFO - we take 896 photos in this while loop
MAIN: 2026-06-22 21:26:06,416 - INFO - /home/pi/Desktop/images/22062026/21/25/image_22062026_21_26_05_60503.jpg
MAIN: 2026-06-22 21:26:06,416 - INFO - duration: 0.9392045700005838
MAIN: 2026-06-22 21:26:06,416 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:27: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-06-22 21:27:05,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-06-22 21:27:06,575 - INFO - taking picture
MAIN: 2026-06-22 21:27:06,575 - INFO - we take 897 photos in this while loop
MAIN: 2026-06-22 21:27:06,575 - INFO - /home/pi/Desktop/images/22062026/21/26/image_22062026_21_27_05_60181.jpg
MAIN: 2026-06-22 21:27:06,575 - INFO - duration: 0.9170281149999937
MAIN: 2026-06-22 21:27:06,576 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:28:05,197 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:28:05,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-06-22 21:28:06,428 - INFO - taking picture
MAIN: 2026-06-22 21:28:06,428 - INFO - we take 898 photos in this while loop
MAIN: 2026-06-22 21:28:06,428 - INFO - /home/pi/Desktop/images/22062026/21/27/image_22062026_21_28_05_59858.jpg
MAIN: 2026-06-22 21:28:06,428 - INFO - duration: 0.9114739509968786
MAIN: 2026-06-22 21:28:06,429 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:29: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-06-22 21:29: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-06-22 21:29:06,133 - INFO - taking picture
MAIN: 2026-06-22 21:29:06,133 - INFO - we take 899 photos in this while loop
MAIN: 2026-06-22 21:29:06,133 - INFO - /home/pi/Desktop/images/22062026/21/28/image_22062026_21_29_05_59697.jpg
MAIN: 2026-06-22 21:29:06,133 - INFO - duration: 0.9185882989986567
MAIN: 2026-06-22 21:29:06,134 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/29'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21: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-06-22 21:30:06,063 - INFO - taking picture
MAIN: 2026-06-22 21:30:06,063 - INFO - we take 900 photos in this while loop
MAIN: 2026-06-22 21:30:06,063 - INFO - /home/pi/Desktop/images/22062026/21/29/image_22062026_21_30_05_59948.jpg
MAIN: 2026-06-22 21:30:06,064 - INFO - duration: 0.9007023410013062
MAIN: 2026-06-22 21:30:06,064 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/30'
MAIN: 2026-06-22 21:30:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:31:05,250 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:31: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 ! 
MAIN: 2026-06-22 21:31:05,919 - INFO - taking picture
MAIN: 2026-06-22 21:31:05,919 - INFO - we take 901 photos in this while loop
MAIN: 2026-06-22 21:31:05,919 - INFO - /home/pi/Desktop/images/22062026/21/30/image_22062026_21_31_05_59821.jpg
MAIN: 2026-06-22 21:31:05,920 - INFO - duration: 0.9354251440017833
MAIN: 2026-06-22 21:31:05,920 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:32: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-06-22 21:32:05,088 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:32:05,752 - INFO - taking picture
MAIN: 2026-06-22 21:32:05,752 - INFO - we take 902 photos in this while loop
MAIN: 2026-06-22 21:32:05,752 - INFO - /home/pi/Desktop/images/22062026/21/31/image_22062026_21_32_05_59828.jpg
MAIN: 2026-06-22 21:32:05,752 - INFO - duration: 0.939647271996364
MAIN: 2026-06-22 21:32:05,753 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:33:05,108 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:33:05,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-06-22 21:33:06,548 - INFO - taking picture
MAIN: 2026-06-22 21:33:06,548 - INFO - we take 903 photos in this while loop
MAIN: 2026-06-22 21:33:06,548 - INFO - /home/pi/Desktop/images/22062026/21/32/image_22062026_21_33_05_60821.jpg
MAIN: 2026-06-22 21:33:06,548 - INFO - duration: 0.9138849770024535
MAIN: 2026-06-22 21:33:06,549 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:34: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-06-22 21:34: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-06-22 21:34:06,402 - INFO - taking picture
MAIN: 2026-06-22 21:34:06,402 - INFO - we take 904 photos in this while loop
MAIN: 2026-06-22 21:34:06,402 - INFO - /home/pi/Desktop/images/22062026/21/33/image_22062026_21_34_05_59832.jpg
MAIN: 2026-06-22 21:34:06,403 - INFO - duration: 0.9352585349988658
MAIN: 2026-06-22 21:34:06,403 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/34'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:35:05,566 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:35: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-06-22 21:35:06,415 - INFO - taking picture
MAIN: 2026-06-22 21:35:06,416 - INFO - we take 905 photos in this while loop
MAIN: 2026-06-22 21:35:06,416 - INFO - /home/pi/Desktop/images/22062026/21/34/image_22062026_21_35_05_59997.jpg
MAIN: 2026-06-22 21:35:06,416 - INFO - duration: 0.9508298369983095
MAIN: 2026-06-22 21:35:06,416 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/35'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:36:05,551 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:36:05,638 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:36:06,217 - INFO - taking picture
MAIN: 2026-06-22 21:36:06,218 - INFO - we take 906 photos in this while loop
MAIN: 2026-06-22 21:36:06,218 - INFO - /home/pi/Desktop/images/22062026/21/35/image_22062026_21_36_05_59816.jpg
MAIN: 2026-06-22 21:36:06,218 - INFO - duration: 0.9359741199950804
MAIN: 2026-06-22 21:36:06,218 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/36'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:37:05,092 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:37: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-06-22 21:37:05,762 - INFO - taking picture
MAIN: 2026-06-22 21:37:05,762 - INFO - we take 907 photos in this while loop
MAIN: 2026-06-22 21:37:05,763 - INFO - /home/pi/Desktop/images/22062026/21/36/image_22062026_21_37_05_59535.jpg
MAIN: 2026-06-22 21:37:05,763 - INFO - duration: 0.9454309570064652
MAIN: 2026-06-22 21:37:05,763 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:38: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-06-22 21:38:05,725 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:38:05,730 - INFO - taking picture
MAIN: 2026-06-22 21:38:05,730 - INFO - we take 908 photos in this while loop
MAIN: 2026-06-22 21:38:05,730 - INFO - /home/pi/Desktop/images/22062026/21/37/image_22062026_21_38_05_60001.jpg
MAIN: 2026-06-22 21:38:05,730 - INFO - duration: 0.9116127989982488
MAIN: 2026-06-22 21:38:05,731 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:39: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-06-22 21:39:04,800 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:39:05,466 - INFO - taking picture
MAIN: 2026-06-22 21:39:05,466 - INFO - we take 909 photos in this while loop
MAIN: 2026-06-22 21:39:05,467 - INFO - /home/pi/Desktop/images/22062026/21/38/image_22062026_21_39_04_59722.jpg
MAIN: 2026-06-22 21:39:05,467 - INFO - duration: 0.9254965649961377
MAIN: 2026-06-22 21:39:05,467 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/39'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:40: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-06-22 21:40: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-06-22 21:40:05,648 - INFO - taking picture
MAIN: 2026-06-22 21:40:05,649 - INFO - we take 910 photos in this while loop
MAIN: 2026-06-22 21:40:05,649 - INFO - /home/pi/Desktop/images/22062026/21/39/image_22062026_21_40_04_60120.jpg
MAIN: 2026-06-22 21:40:05,649 - INFO - duration: 0.9869529019997572
MAIN: 2026-06-22 21:40:05,649 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/40'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:41:04,983 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:41: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-06-22 21:41:05,707 - INFO - taking picture
MAIN: 2026-06-22 21:41:05,707 - INFO - we take 911 photos in this while loop
MAIN: 2026-06-22 21:41:05,707 - INFO - /home/pi/Desktop/images/22062026/21/40/image_22062026_21_41_04_60065.jpg
MAIN: 2026-06-22 21:41:05,707 - INFO - duration: 0.979596622993995
MAIN: 2026-06-22 21:41:05,708 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:42:04,971 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:42: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-06-22 21:42:05,649 - INFO - taking picture
MAIN: 2026-06-22 21:42:05,650 - INFO - we take 912 photos in this while loop
MAIN: 2026-06-22 21:42:05,650 - INFO - /home/pi/Desktop/images/22062026/21/41/image_22062026_21_42_04_59962.jpg
MAIN: 2026-06-22 21:42:05,650 - INFO - duration: 0.9599382160013192
MAIN: 2026-06-22 21:42:05,650 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:43:04,790 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:43:05,151 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:43:05,493 - INFO - taking picture
MAIN: 2026-06-22 21:43:05,494 - INFO - we take 913 photos in this while loop
MAIN: 2026-06-22 21:43:05,494 - INFO - /home/pi/Desktop/images/22062026/21/42/image_22062026_21_43_04_59831.jpg
MAIN: 2026-06-22 21:43:05,494 - INFO - duration: 0.9724413239964633
MAIN: 2026-06-22 21:43:05,494 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/43'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:44:05,723 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:44:05,786 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:44:06,437 - INFO - taking picture
MAIN: 2026-06-22 21:44:06,437 - INFO - we take 914 photos in this while loop
MAIN: 2026-06-22 21:44:06,437 - INFO - /home/pi/Desktop/images/22062026/21/43/image_22062026_21_44_05_60935.jpg
MAIN: 2026-06-22 21:44:06,437 - INFO - duration: 0.9801346299936995
MAIN: 2026-06-22 21:44:06,438 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/44'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:45: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-06-22 21:45:05,529 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:45:06,190 - INFO - taking picture
MAIN: 2026-06-22 21:45:06,190 - INFO - we take 915 photos in this while loop
MAIN: 2026-06-22 21:45:06,190 - INFO - /home/pi/Desktop/images/22062026/21/44/image_22062026_21_45_05_59811.jpg
MAIN: 2026-06-22 21:45:06,190 - INFO - duration: 0.9213981659995625
MAIN: 2026-06-22 21:45:06,190 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:46: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-06-22 21:46:05,294 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:46:05,953 - INFO - taking picture
MAIN: 2026-06-22 21:46:05,954 - INFO - we take 916 photos in this while loop
MAIN: 2026-06-22 21:46:05,954 - INFO - /home/pi/Desktop/images/22062026/21/45/image_22062026_21_46_05_59805.jpg
MAIN: 2026-06-22 21:46:05,954 - INFO - duration: 0.8800241549979546
MAIN: 2026-06-22 21:46:05,954 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:47:04,839 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:47:04,962 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:47:05,673 - INFO - taking picture
MAIN: 2026-06-22 21:47:05,673 - INFO - we take 917 photos in this while loop
MAIN: 2026-06-22 21:47:05,673 - INFO - /home/pi/Desktop/images/22062026/21/46/image_22062026_21_47_04_59593.jpg
MAIN: 2026-06-22 21:47:05,674 - INFO - duration: 1.0061204579978948
MAIN: 2026-06-22 21:47:05,674 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:48:04,833 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:48: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-06-22 21:48:05,503 - INFO - taking picture
MAIN: 2026-06-22 21:48:05,504 - INFO - we take 918 photos in this while loop
MAIN: 2026-06-22 21:48:05,504 - INFO - /home/pi/Desktop/images/22062026/21/47/image_22062026_21_48_04_59901.jpg
MAIN: 2026-06-22 21:48:05,504 - INFO - duration: 0.9348700959963026
MAIN: 2026-06-22 21:48:05,504 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:49:05,119 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:49:05,644 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:49:06,304 - INFO - taking picture
MAIN: 2026-06-22 21:49:06,304 - INFO - we take 919 photos in this while loop
MAIN: 2026-06-22 21:49:06,304 - INFO - /home/pi/Desktop/images/22062026/21/48/image_22062026_21_49_05_60866.jpg
MAIN: 2026-06-22 21:49:06,305 - INFO - duration: 0.8692440300001181
MAIN: 2026-06-22 21:49:06,305 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:50:05,156 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:50:05,904 - INFO - taking picture
MAIN: 2026-06-22 21:50:05,904 - INFO - we take 920 photos in this while loop
MAIN: 2026-06-22 21:50:05,904 - INFO - /home/pi/Desktop/images/22062026/21/49/image_22062026_21_50_05_59495.jpg
MAIN: 2026-06-22 21:50:05,904 - INFO - duration: 0.9735044249973726
MAIN: 2026-06-22 21:50:05,905 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/50'
MAIN: 2026-06-22 21:50:06,066 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:51:05,075 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:51:05,434 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:51:05,744 - INFO - taking picture
MAIN: 2026-06-22 21:51:05,744 - INFO - we take 921 photos in this while loop
MAIN: 2026-06-22 21:51:05,744 - INFO - /home/pi/Desktop/images/22062026/21/50/image_22062026_21_51_05_59880.jpg
MAIN: 2026-06-22 21:51:05,744 - INFO - duration: 0.9328849500016076
MAIN: 2026-06-22 21:51:05,744 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/51'
MAIN: 2026-06-22 21:52: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

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:52:05,563 - INFO - taking picture
MAIN: 2026-06-22 21:52:05,563 - INFO - we take 922 photos in this while loop
MAIN: 2026-06-22 21:52:05,563 - INFO - /home/pi/Desktop/images/22062026/21/51/image_22062026_21_52_04_59810.jpg
MAIN: 2026-06-22 21:52:05,563 - INFO - duration: 0.9421387249967665
MAIN: 2026-06-22 21:52:05,564 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/52'
MAIN: 2026-06-22 21:52:05,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:53:04,691 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:53:05,612 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:53:06,272 - INFO - taking picture
MAIN: 2026-06-22 21:53:06,273 - INFO - we take 923 photos in this while loop
MAIN: 2026-06-22 21:53:06,273 - INFO - /home/pi/Desktop/images/22062026/21/52/image_22062026_21_53_05_60742.jpg
MAIN: 2026-06-22 21:53:06,273 - INFO - duration: 0.9091073340023286
MAIN: 2026-06-22 21:53:06,273 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/53'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:54:05,105 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:54: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-06-22 21:54:05,818 - INFO - taking picture
MAIN: 2026-06-22 21:54:05,818 - INFO - we take 924 photos in this while loop
MAIN: 2026-06-22 21:54:05,818 - INFO - /home/pi/Desktop/images/22062026/21/53/image_22062026_21_54_05_59493.jpg
MAIN: 2026-06-22 21:54:05,819 - INFO - duration: 0.9612795460052439
MAIN: 2026-06-22 21:54:05,819 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:55:05,044 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:55:05,470 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:55:05,713 - INFO - taking picture
MAIN: 2026-06-22 21:55:05,713 - INFO - we take 925 photos in this while loop
MAIN: 2026-06-22 21:55:05,713 - INFO - /home/pi/Desktop/images/22062026/21/54/image_22062026_21_55_05_59944.jpg
MAIN: 2026-06-22 21:55:05,713 - INFO - duration: 0.9110842049994972
MAIN: 2026-06-22 21:55:05,713 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/55'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:56:05,426 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:56:05,905 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:56:06,567 - INFO - taking picture
MAIN: 2026-06-22 21:56:06,567 - INFO - we take 926 photos in this while loop
MAIN: 2026-06-22 21:56:06,567 - INFO - /home/pi/Desktop/images/22062026/21/55/image_22062026_21_56_05_60891.jpg
MAIN: 2026-06-22 21:56:06,567 - INFO - duration: 0.8735908759990707
MAIN: 2026-06-22 21:56:06,568 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:57:05,324 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:57:05,666 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:57:06,320 - INFO - taking picture
MAIN: 2026-06-22 21:57:06,321 - INFO - we take 927 photos in this while loop
MAIN: 2026-06-22 21:57:06,321 - INFO - /home/pi/Desktop/images/22062026/21/56/image_22062026_21_57_05_59759.jpg
MAIN: 2026-06-22 21:57:06,321 - INFO - duration: 0.8676166400036891
MAIN: 2026-06-22 21:57:06,321 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 21:58: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-06-22 21:58:05,622 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 21:58:05,958 - INFO - taking picture
MAIN: 2026-06-22 21:58:05,958 - INFO - we take 928 photos in this while loop
MAIN: 2026-06-22 21:58:05,958 - INFO - /home/pi/Desktop/images/22062026/21/57/image_22062026_21_58_05_59593.jpg
MAIN: 2026-06-22 21:58:05,958 - INFO - duration: 0.9112454880014411
MAIN: 2026-06-22 21:58:05,958 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 21:59:04,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-06-22 21:59:05,846 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 21:59:06,504 - INFO - taking picture
MAIN: 2026-06-22 21:59:06,504 - INFO - we take 929 photos in this while loop
MAIN: 2026-06-22 21:59:06,504 - INFO - /home/pi/Desktop/images/22062026/21/58/image_22062026_21_59_05_60534.jpg
MAIN: 2026-06-22 21:59:06,504 - INFO - duration: 0.9231265449998318
MAIN: 2026-06-22 21:59:06,505 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/21/59'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:00:05,807 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:00: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-06-22 22:00:06,560 - INFO - taking picture
MAIN: 2026-06-22 22:00:06,560 - INFO - we take 930 photos in this while loop
MAIN: 2026-06-22 22:00:06,560 - INFO - /home/pi/Desktop/images/22062026/21/59/image_22062026_22_00_05_60015.jpg
MAIN: 2026-06-22 22:00:06,560 - INFO - duration: 0.9635967330032145
MAIN: 2026-06-22 22:00:06,561 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:01:05,244 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:01:05,566 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:01:06,228 - INFO - taking picture
MAIN: 2026-06-22 22:01:06,228 - INFO - we take 931 photos in this while loop
MAIN: 2026-06-22 22:01:06,228 - INFO - /home/pi/Desktop/images/22062026/22/00/image_22062026_22_01_05_59742.jpg
MAIN: 2026-06-22 22:01:06,228 - INFO - duration: 0.888840526000422
MAIN: 2026-06-22 22:01:06,229 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/01'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:02:05,362 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:02: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-06-22 22:02:06,030 - INFO - taking picture
MAIN: 2026-06-22 22:02:06,030 - INFO - we take 932 photos in this while loop
MAIN: 2026-06-22 22:02:06,030 - INFO - /home/pi/Desktop/images/22062026/22/01/image_22062026_22_02_05_59759.jpg
MAIN: 2026-06-22 22:02:06,030 - INFO - duration: 0.9311972620052984
MAIN: 2026-06-22 22:02:06,030 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:03:04,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-06-22 22:03: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-06-22 22:03:05,809 - INFO - taking picture
MAIN: 2026-06-22 22:03:05,809 - INFO - we take 933 photos in this while loop
MAIN: 2026-06-22 22:03:05,809 - INFO - /home/pi/Desktop/images/22062026/22/02/image_22062026_22_03_05_59843.jpg
MAIN: 2026-06-22 22:03:05,809 - INFO - duration: 0.8672756680025486
MAIN: 2026-06-22 22:03:05,810 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/03'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:04:04,883 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:04:05,021 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:04:05,730 - INFO - taking picture
MAIN: 2026-06-22 22:04:05,731 - INFO - we take 934 photos in this while loop
MAIN: 2026-06-22 22:04:05,731 - INFO - /home/pi/Desktop/images/22062026/22/03/image_22062026_22_04_05_59769.jpg
MAIN: 2026-06-22 22:04:05,731 - INFO - duration: 1.0192427459987812
MAIN: 2026-06-22 22:04:05,731 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:05:05,021 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:05:05,240 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:05:05,688 - INFO - taking picture
MAIN: 2026-06-22 22:05:05,688 - INFO - we take 935 photos in this while loop
MAIN: 2026-06-22 22:05:05,688 - INFO - /home/pi/Desktop/images/22062026/22/04/image_22062026_22_05_05_60078.jpg
MAIN: 2026-06-22 22:05:05,688 - INFO - duration: 0.8987781799951335
MAIN: 2026-06-22 22:05:05,689 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:06: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-06-22 22:06:05,413 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:06:05,655 - INFO - taking picture
MAIN: 2026-06-22 22:06:05,655 - INFO - we take 936 photos in this while loop
MAIN: 2026-06-22 22:06:05,655 - INFO - /home/pi/Desktop/images/22062026/22/05/image_22062026_22_06_04_59947.jpg
MAIN: 2026-06-22 22:06:05,655 - INFO - duration: 0.9183037469992996
MAIN: 2026-06-22 22:06:05,656 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/06'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:07: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-06-22 22:07:05,205 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:07:05,574 - INFO - taking picture
MAIN: 2026-06-22 22:07:05,575 - INFO - we take 937 photos in this while loop
MAIN: 2026-06-22 22:07:05,575 - INFO - /home/pi/Desktop/images/22062026/22/06/image_22062026_22_07_04_59858.jpg
MAIN: 2026-06-22 22:07:05,575 - INFO - duration: 0.9790202709991718
MAIN: 2026-06-22 22:07:05,575 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:08: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-06-22 22:08:05,321 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:08:05,979 - INFO - taking picture
MAIN: 2026-06-22 22:08:05,980 - INFO - we take 938 photos in this while loop
MAIN: 2026-06-22 22:08:05,980 - INFO - /home/pi/Desktop/images/22062026/22/07/image_22062026_22_08_05_60474.jpg
MAIN: 2026-06-22 22:08:05,980 - INFO - duration: 0.9092525149972062
MAIN: 2026-06-22 22:08:05,980 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:09:05,162 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:09:05,211 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:09:05,823 - INFO - taking picture
MAIN: 2026-06-22 22:09:05,823 - INFO - we take 939 photos in this while loop
MAIN: 2026-06-22 22:09:05,823 - INFO - /home/pi/Desktop/images/22062026/22/08/image_22062026_22_09_05_59821.jpg
MAIN: 2026-06-22 22:09:05,823 - INFO - duration: 0.9307813639970846
MAIN: 2026-06-22 22:09:05,823 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/09'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:10: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-06-22 22:10:05,997 - INFO - taking picture
MAIN: 2026-06-22 22:10:05,998 - INFO - we take 940 photos in this while loop
MAIN: 2026-06-22 22:10:05,998 - INFO - /home/pi/Desktop/images/22062026/22/09/image_22062026_22_10_05_60137.jpg
MAIN: 2026-06-22 22:10:05,998 - INFO - duration: 0.9680320620027487
MAIN: 2026-06-22 22:10:05,998 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/10'
MAIN: 2026-06-22 22:10:06,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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:11: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-06-22 22:11: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-06-22 22:11:05,817 - INFO - taking picture
MAIN: 2026-06-22 22:11:05,818 - INFO - we take 941 photos in this while loop
MAIN: 2026-06-22 22:11:05,818 - INFO - /home/pi/Desktop/images/22062026/22/10/image_22062026_22_11_05_59916.jpg
MAIN: 2026-06-22 22:11:05,818 - INFO - duration: 0.8716592130003846
MAIN: 2026-06-22 22:11:05,818 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/11'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:12: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-06-22 22:12:05,149 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:12:05,582 - INFO - taking picture
MAIN: 2026-06-22 22:12:05,582 - INFO - we take 942 photos in this while loop
MAIN: 2026-06-22 22:12:05,583 - INFO - /home/pi/Desktop/images/22062026/22/11/image_22062026_22_12_04_59711.jpg
MAIN: 2026-06-22 22:12:05,583 - INFO - duration: 0.9248725680008647
MAIN: 2026-06-22 22:12:05,583 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/12'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:13:04,885 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:13:05,045 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:13:05,567 - INFO - taking picture
MAIN: 2026-06-22 22:13:05,568 - INFO - we take 943 photos in this while loop
MAIN: 2026-06-22 22:13:05,568 - INFO - /home/pi/Desktop/images/22062026/22/12/image_22062026_22_13_04_59946.jpg
MAIN: 2026-06-22 22:13:05,568 - INFO - duration: 0.9632316440038267
MAIN: 2026-06-22 22:13:05,568 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/13'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:14:04,933 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:14:05,590 - INFO - taking picture
MAIN: 2026-06-22 22:14:05,591 - INFO - we take 944 photos in this while loop
MAIN: 2026-06-22 22:14:05,591 - INFO - /home/pi/Desktop/images/22062026/22/13/image_22062026_22_14_04_60064.jpg
MAIN: 2026-06-22 22:14:05,591 - INFO - duration: 0.9219577650001156
MAIN: 2026-06-22 22:14:05,591 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/14'
MAIN: 2026-06-22 22:14: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:15: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-06-22 22:15:05,674 - INFO - taking picture
MAIN: 2026-06-22 22:15:05,674 - INFO - we take 945 photos in this while loop
MAIN: 2026-06-22 22:15:05,674 - INFO - /home/pi/Desktop/images/22062026/22/14/image_22062026_22_15_04_60094.jpg
MAIN: 2026-06-22 22:15:05,674 - INFO - duration: 0.9107599150011083
MAIN: 2026-06-22 22:15:05,675 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/15'
MAIN: 2026-06-22 22:15:05,968 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:16:05,122 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:16:05,780 - INFO - taking picture
MAIN: 2026-06-22 22:16:05,780 - INFO - we take 946 photos in this while loop
MAIN: 2026-06-22 22:16:05,781 - INFO - /home/pi/Desktop/images/22062026/22/15/image_22062026_22_16_05_60113.jpg
MAIN: 2026-06-22 22:16:05,781 - INFO - duration: 0.9033222790021682
MAIN: 2026-06-22 22:16:05,781 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/16'
MAIN: 2026-06-22 22:16:05,927 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:17:04,803 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:17:04,965 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:17:05,666 - INFO - taking picture
MAIN: 2026-06-22 22:17:05,667 - INFO - we take 947 photos in this while loop
MAIN: 2026-06-22 22:17:05,667 - INFO - /home/pi/Desktop/images/22062026/22/16/image_22062026_22_17_04_59772.jpg
MAIN: 2026-06-22 22:17:05,667 - INFO - duration: 1.0171710130016436
MAIN: 2026-06-22 22:17:05,667 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/17'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:18:05,005 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:18: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-06-22 22:18:05,721 - INFO - taking picture
MAIN: 2026-06-22 22:18:05,721 - INFO - we take 948 photos in this while loop
MAIN: 2026-06-22 22:18:05,721 - INFO - /home/pi/Desktop/images/22062026/22/17/image_22062026_22_18_05_60091.jpg
MAIN: 2026-06-22 22:18:05,721 - INFO - duration: 0.9795229250012198
MAIN: 2026-06-22 22:18:05,722 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/18'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:19:04,935 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:19:05,149 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:19:05,609 - INFO - taking picture
MAIN: 2026-06-22 22:19:05,610 - INFO - we take 949 photos in this while loop
MAIN: 2026-06-22 22:19:05,610 - INFO - /home/pi/Desktop/images/22062026/22/18/image_22062026_22_19_04_59922.jpg
MAIN: 2026-06-22 22:19:05,610 - INFO - duration: 0.9458287160014152
MAIN: 2026-06-22 22:19:05,610 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/19'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:20:05,059 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:20:05,736 - INFO - taking picture
MAIN: 2026-06-22 22:20:05,736 - INFO - we take 950 photos in this while loop
MAIN: 2026-06-22 22:20:05,736 - INFO - /home/pi/Desktop/images/22062026/22/19/image_22062026_22_20_05_60166.jpg
MAIN: 2026-06-22 22:20:05,737 - INFO - duration: 0.906480774996453
MAIN: 2026-06-22 22:20:05,737 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/20'
MAIN: 2026-06-22 22:20: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-06-22 22:21:04,898 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:21:05,534 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:21:05,610 - INFO - taking picture
MAIN: 2026-06-22 22:21:05,611 - INFO - we take 951 photos in this while loop
MAIN: 2026-06-22 22:21:05,611 - INFO - /home/pi/Desktop/images/22062026/22/20/image_22062026_22_21_04_59783.jpg
MAIN: 2026-06-22 22:21:05,612 - INFO - duration: 0.9981748379941564
MAIN: 2026-06-22 22:21:05,612 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/21'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:22:05,212 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:22:05,745 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:22:05,924 - INFO - taking picture
MAIN: 2026-06-22 22:22:05,925 - INFO - we take 952 photos in this while loop
MAIN: 2026-06-22 22:22:05,925 - INFO - /home/pi/Desktop/images/22062026/22/21/image_22062026_22_22_05_60320.jpg
MAIN: 2026-06-22 22:22:05,925 - INFO - duration: 0.9911730820022058
MAIN: 2026-06-22 22:22:05,925 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/22'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:23:04,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-06-22 22:23:05,045 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:23:05,704 - INFO - taking picture
MAIN: 2026-06-22 22:23:05,704 - INFO - we take 953 photos in this while loop
MAIN: 2026-06-22 22:23:05,704 - INFO - /home/pi/Desktop/images/22062026/22/22/image_22062026_22_23_05_59898.jpg
MAIN: 2026-06-22 22:23:05,704 - INFO - duration: 0.8724813760054531
MAIN: 2026-06-22 22:23:05,705 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/23'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:24:04,857 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:24: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-06-22 22:24:05,527 - INFO - taking picture
MAIN: 2026-06-22 22:24:05,527 - INFO - we take 954 photos in this while loop
MAIN: 2026-06-22 22:24:05,527 - INFO - /home/pi/Desktop/images/22062026/22/23/image_22062026_22_24_04_59764.jpg
MAIN: 2026-06-22 22:24:05,527 - INFO - duration: 0.9311318949985434
MAIN: 2026-06-22 22:24:05,528 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/24'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:25:04,899 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:25:05,261 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:25:05,566 - INFO - taking picture
MAIN: 2026-06-22 22:25:05,566 - INFO - we take 955 photos in this while loop
MAIN: 2026-06-22 22:25:05,567 - INFO - /home/pi/Desktop/images/22062026/22/24/image_22062026_22_25_04_60081.jpg
MAIN: 2026-06-22 22:25:05,567 - INFO - duration: 0.8894523330018274
MAIN: 2026-06-22 22:25:05,567 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/25'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:26:05,622 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:26:05,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-06-22 22:26:06,561 - INFO - taking picture
MAIN: 2026-06-22 22:26:06,562 - INFO - we take 956 photos in this while loop
MAIN: 2026-06-22 22:26:06,562 - INFO - /home/pi/Desktop/images/22062026/22/25/image_22062026_22_26_05_60968.jpg
MAIN: 2026-06-22 22:26:06,562 - INFO - duration: 0.9163845839939313
MAIN: 2026-06-22 22:26:06,562 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/26'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:27:05,367 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:27: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-06-22 22:27:06,192 - INFO - taking picture
MAIN: 2026-06-22 22:27:06,193 - INFO - we take 957 photos in this while loop
MAIN: 2026-06-22 22:27:06,193 - INFO - /home/pi/Desktop/images/22062026/22/26/image_22062026_22_27_05_59621.jpg
MAIN: 2026-06-22 22:27:06,193 - INFO - duration: 0.9255576430005021
MAIN: 2026-06-22 22:27:06,193 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/27'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:28:04,871 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:28:05,346 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:28:06,087 - INFO - taking picture
MAIN: 2026-06-22 22:28:06,087 - INFO - we take 958 photos in this while loop
MAIN: 2026-06-22 22:28:06,087 - INFO - /home/pi/Desktop/images/22062026/22/27/image_22062026_22_28_05_59869.jpg
MAIN: 2026-06-22 22:28:06,087 - INFO - duration: 0.9508433369992417
MAIN: 2026-06-22 22:28:06,088 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:29: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-06-22 22:29:05,596 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:29:06,306 - INFO - taking picture
MAIN: 2026-06-22 22:29:06,306 - INFO - we take 959 photos in this while loop
MAIN: 2026-06-22 22:29:06,307 - INFO - /home/pi/Desktop/images/22062026/22/28/image_22062026_22_29_05_60229.jpg
MAIN: 2026-06-22 22:29:06,307 - INFO - duration: 0.9414656559965806
MAIN: 2026-06-22 22:29:06,307 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/29'
MAIN: 2026-06-22 22:30: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

[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:30:05,459 - INFO - taking picture
MAIN: 2026-06-22 22:30:05,459 - INFO - we take 960 photos in this while loop
MAIN: 2026-06-22 22:30:05,459 - INFO - /home/pi/Desktop/images/22062026/22/29/image_22062026_22_30_04_59190.jpg
MAIN: 2026-06-22 22:30:05,459 - INFO - duration: 0.9038314849967719
MAIN: 2026-06-22 22:30:05,460 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/30'
MAIN: 2026-06-22 22:30: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 ! 
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:31:05,186 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:31:05,855 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:31:06,511 - INFO - taking picture
MAIN: 2026-06-22 22:31:06,511 - INFO - we take 961 photos in this while loop
MAIN: 2026-06-22 22:31:06,511 - INFO - /home/pi/Desktop/images/22062026/22/30/image_22062026_22_31_05_61047.jpg
MAIN: 2026-06-22 22:31:06,512 - INFO - duration: 0.9087218860004214
MAIN: 2026-06-22 22:31:06,512 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/31'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:32:05,618 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:32:05,707 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:32:06,370 - INFO - taking picture
MAIN: 2026-06-22 22:32:06,371 - INFO - we take 962 photos in this while loop
MAIN: 2026-06-22 22:32:06,371 - INFO - /home/pi/Desktop/images/22062026/22/31/image_22062026_22_32_05_59824.jpg
MAIN: 2026-06-22 22:32:06,371 - INFO - duration: 0.9437214670033427
MAIN: 2026-06-22 22:32:06,371 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/32'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:33: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-06-22 22: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 ! 
MAIN: 2026-06-22 22:33:06,184 - INFO - taking picture
MAIN: 2026-06-22 22:33:06,185 - INFO - we take 963 photos in this while loop
MAIN: 2026-06-22 22:33:06,185 - INFO - /home/pi/Desktop/images/22062026/22/32/image_22062026_22_33_05_59760.jpg
MAIN: 2026-06-22 22:33:06,185 - INFO - duration: 0.9967649020036333
MAIN: 2026-06-22 22:33:06,185 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/33'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:34:05,397 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:34:05,671 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:34:06,093 - INFO - taking picture
MAIN: 2026-06-22 22:34:06,093 - INFO - we take 964 photos in this while loop
MAIN: 2026-06-22 22:34:06,093 - INFO - /home/pi/Desktop/images/22062026/22/33/image_22062026_22_34_05_59942.jpg
MAIN: 2026-06-22 22:34:06,093 - INFO - duration: 0.9626486109991674
MAIN: 2026-06-22 22:34:06,094 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/34'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:35:05,316 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:35:05,823 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:35:06,484 - INFO - taking picture
MAIN: 2026-06-22 22:35:06,484 - INFO - we take 965 photos in this while loop
MAIN: 2026-06-22 22:35:06,484 - INFO - /home/pi/Desktop/images/22062026/22/34/image_22062026_22_35_05_60432.jpg
MAIN: 2026-06-22 22:35:06,485 - INFO - duration: 0.9216803579984116
MAIN: 2026-06-22 22:35:06,485 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/35'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:36: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-06-22 22:36:05,503 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:36:06,161 - INFO - taking picture
MAIN: 2026-06-22 22:36:06,162 - INFO - we take 966 photos in this while loop
MAIN: 2026-06-22 22:36:06,162 - INFO - /home/pi/Desktop/images/22062026/22/35/image_22062026_22_36_05_59726.jpg
MAIN: 2026-06-22 22:36:06,162 - INFO - duration: 0.8729029719979735
MAIN: 2026-06-22 22:36:06,162 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/36'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:37: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-06-22 22:37:05,374 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:37:06,035 - INFO - taking picture
MAIN: 2026-06-22 22:37:06,035 - INFO - we take 967 photos in this while loop
MAIN: 2026-06-22 22:37:06,035 - INFO - /home/pi/Desktop/images/22062026/22/36/image_22062026_22_37_05_59787.jpg
MAIN: 2026-06-22 22:37:06,035 - INFO - duration: 0.9591517820008448
MAIN: 2026-06-22 22:37:06,036 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/37'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:38:05,172 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:38:05,434 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:38:05,844 - INFO - taking picture
MAIN: 2026-06-22 22:38:05,845 - INFO - we take 968 photos in this while loop
MAIN: 2026-06-22 22:38:05,845 - INFO - /home/pi/Desktop/images/22062026/22/37/image_22062026_22_38_05_59833.jpg
MAIN: 2026-06-22 22:38:05,845 - INFO - duration: 0.9352569100010442
MAIN: 2026-06-22 22:38:05,845 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:39:04,978 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:39:05,635 - INFO - taking picture
MAIN: 2026-06-22 22:39:05,635 - INFO - we take 969 photos in this while loop
MAIN: 2026-06-22 22:39:05,636 - INFO - /home/pi/Desktop/images/22062026/22/38/image_22062026_22_39_04_59804.jpg
MAIN: 2026-06-22 22:39:05,636 - INFO - duration: 0.9218349069997203
MAIN: 2026-06-22 22:39:05,636 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/39'
MAIN: 2026-06-22 22:39: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-06-22 22:40: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-06-22 22:40: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-06-22 22:40:05,457 - INFO - taking picture
MAIN: 2026-06-22 22:40:05,457 - INFO - we take 970 photos in this while loop
MAIN: 2026-06-22 22:40:05,458 - INFO - /home/pi/Desktop/images/22062026/22/39/image_22062026_22_40_04_59832.jpg
MAIN: 2026-06-22 22:40:05,458 - INFO - duration: 0.9116961710024043
MAIN: 2026-06-22 22:40:05,458 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/40'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:41:05,024 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:41:05,651 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:41:06,348 - INFO - taking picture
MAIN: 2026-06-22 22:41:06,348 - INFO - we take 971 photos in this while loop
MAIN: 2026-06-22 22:41:06,348 - INFO - /home/pi/Desktop/images/22062026/22/40/image_22062026_22_41_05_60891.jpg
MAIN: 2026-06-22 22:41:06,348 - INFO - duration: 0.9105978250008775
MAIN: 2026-06-22 22:41:06,349 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/41'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:42: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-06-22 22:42:05,569 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:42:06,231 - INFO - taking picture
MAIN: 2026-06-22 22:42:06,231 - INFO - we take 972 photos in this while loop
MAIN: 2026-06-22 22:42:06,231 - INFO - /home/pi/Desktop/images/22062026/22/41/image_22062026_22_42_05_59816.jpg
MAIN: 2026-06-22 22:42:06,231 - INFO - duration: 0.9765745869954117
MAIN: 2026-06-22 22:42:06,231 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/42'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:43:05,360 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:43:05,396 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:43:06,035 - INFO - taking picture
MAIN: 2026-06-22 22:43:06,035 - INFO - we take 973 photos in this while loop
MAIN: 2026-06-22 22:43:06,035 - INFO - /home/pi/Desktop/images/22062026/22/42/image_22062026_22_43_05_59841.jpg
MAIN: 2026-06-22 22:43:06,036 - INFO - duration: 0.9397455970029114
MAIN: 2026-06-22 22:43:06,036 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:44:05,320 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:44: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-06-22 22:44:05,989 - INFO - taking picture
MAIN: 2026-06-22 22:44:05,989 - INFO - we take 974 photos in this while loop
MAIN: 2026-06-22 22:44:05,989 - INFO - /home/pi/Desktop/images/22062026/22/43/image_22062026_22_44_05_59969.jpg
MAIN: 2026-06-22 22:44:05,989 - INFO - duration: 0.9242104099976132
MAIN: 2026-06-22 22:44:05,989 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/44'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:45:05,129 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:45:05,643 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:45:05,813 - INFO - taking picture
MAIN: 2026-06-22 22:45:05,814 - INFO - we take 975 photos in this while loop
MAIN: 2026-06-22 22:45:05,814 - INFO - /home/pi/Desktop/images/22062026/22/44/image_22062026_22_45_05_59838.jpg
MAIN: 2026-06-22 22:45:05,814 - INFO - duration: 0.9113264070037985
MAIN: 2026-06-22 22:45:05,815 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/45'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:46:04,867 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:46:04,949 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:46:05,613 - INFO - taking picture
MAIN: 2026-06-22 22:46:05,613 - INFO - we take 976 photos in this while loop
MAIN: 2026-06-22 22:46:05,613 - INFO - /home/pi/Desktop/images/22062026/22/45/image_22062026_22_46_04_59756.jpg
MAIN: 2026-06-22 22:46:05,614 - INFO - duration: 0.9536654849944171
MAIN: 2026-06-22 22:46:05,614 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/46'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:47:04,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-06-22 22:47:05,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-06-22 22:47:06,556 - INFO - taking picture
MAIN: 2026-06-22 22:47:06,556 - INFO - we take 977 photos in this while loop
MAIN: 2026-06-22 22:47:06,556 - INFO - /home/pi/Desktop/images/22062026/22/46/image_22062026_22_47_05_60984.jpg
MAIN: 2026-06-22 22:47:06,556 - INFO - duration: 0.9121536660095444
MAIN: 2026-06-22 22:47:06,557 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/47'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:48:05,289 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:48:05,493 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:48:06,198 - INFO - taking picture
MAIN: 2026-06-22 22:48:06,198 - INFO - we take 978 photos in this while loop
MAIN: 2026-06-22 22:48:06,198 - INFO - /home/pi/Desktop/images/22062026/22/47/image_22062026_22_48_05_59586.jpg
MAIN: 2026-06-22 22:48:06,198 - INFO - duration: 0.9677034560008906
MAIN: 2026-06-22 22:48:06,199 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/48'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:49:05,128 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:49:05,452 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:49:06,154 - INFO - taking picture
MAIN: 2026-06-22 22:49:06,154 - INFO - we take 979 photos in this while loop
MAIN: 2026-06-22 22:49:06,154 - INFO - /home/pi/Desktop/images/22062026/22/48/image_22062026_22_49_05_59994.jpg
MAIN: 2026-06-22 22:49:06,155 - INFO - duration: 0.9296515349997208
MAIN: 2026-06-22 22:49:06,155 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/49'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:50:05,586 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:50:06,003 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:50:06,314 - INFO - taking picture
MAIN: 2026-06-22 22:50:06,314 - INFO - we take 980 photos in this while loop
MAIN: 2026-06-22 22:50:06,315 - INFO - /home/pi/Desktop/images/22062026/22/49/image_22062026_22_50_05_60126.jpg
MAIN: 2026-06-22 22:50:06,315 - INFO - duration: 0.9626194320007926
MAIN: 2026-06-22 22:50:06,316 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/50'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:51:05,430 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:51: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-06-22 22:51:06,331 - INFO - taking picture
MAIN: 2026-06-22 22:51:06,332 - INFO - we take 981 photos in this while loop
MAIN: 2026-06-22 22:51:06,332 - INFO - /home/pi/Desktop/images/22062026/22/50/image_22062026_22_51_05_60060.jpg
MAIN: 2026-06-22 22:51:06,332 - INFO - duration: 0.9189974859909853
MAIN: 2026-06-22 22:51:06,332 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/51'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:52:04,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 ! 
MAIN: 2026-06-22 22:52: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-06-22 22:52:06,162 - INFO - taking picture
MAIN: 2026-06-22 22:52:06,162 - INFO - we take 982 photos in this while loop
MAIN: 2026-06-22 22:52:06,162 - INFO - /home/pi/Desktop/images/22062026/22/51/image_22062026_22_52_05_59811.jpg
MAIN: 2026-06-22 22:52:06,162 - INFO - duration: 0.9375461449963041
MAIN: 2026-06-22 22:52:06,163 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/52'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22: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-06-22 22:53:05,094 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:53:05,751 - INFO - taking picture
MAIN: 2026-06-22 22:53:05,751 - INFO - we take 983 photos in this while loop
MAIN: 2026-06-22 22:53:05,751 - INFO - /home/pi/Desktop/images/22062026/22/52/image_22062026_22_53_05_59596.jpg
MAIN: 2026-06-22 22:53:05,751 - INFO - duration: 0.9295841099956306
MAIN: 2026-06-22 22:53:05,752 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:54:04,912 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:54:05,349 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:54:05,596 - INFO - taking picture
MAIN: 2026-06-22 22:54:05,596 - INFO - we take 984 photos in this while loop
MAIN: 2026-06-22 22:54:05,597 - INFO - /home/pi/Desktop/images/22062026/22/53/image_22062026_22_54_04_59826.jpg
MAIN: 2026-06-22 22:54:05,597 - INFO - duration: 0.948911040002713
MAIN: 2026-06-22 22:54:05,597 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:55:05,503 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:55:05,886 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:55:06,584 - INFO - taking picture
MAIN: 2026-06-22 22:55:06,584 - INFO - we take 985 photos in this while loop
MAIN: 2026-06-22 22:55:06,584 - INFO - /home/pi/Desktop/images/22062026/22/54/image_22062026_22_55_05_61017.jpg
MAIN: 2026-06-22 22:55:06,584 - INFO - duration: 0.9193169529899023
MAIN: 2026-06-22 22:55:06,585 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/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-06-22 22:56:05,821 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:56:05,833 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:56:06,496 - INFO - taking picture
MAIN: 2026-06-22 22:56:06,496 - INFO - we take 986 photos in this while loop
MAIN: 2026-06-22 22:56:06,496 - INFO - /home/pi/Desktop/images/22062026/22/55/image_22062026_22_56_05_59889.jpg
MAIN: 2026-06-22 22:56:06,496 - INFO - duration: 0.941814397010603
MAIN: 2026-06-22 22:56:06,497 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/56'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:57:04,884 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:57: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-06-22 22:57:06,259 - INFO - taking picture
MAIN: 2026-06-22 22:57:06,260 - INFO - we take 987 photos in this while loop
MAIN: 2026-06-22 22:57:06,260 - INFO - /home/pi/Desktop/images/22062026/22/56/image_22062026_22_57_05_59774.jpg
MAIN: 2026-06-22 22:57:06,260 - INFO - duration: 0.9304567310027778
MAIN: 2026-06-22 22:57:06,260 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/57'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:58:04,968 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:58:05,551 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 22:58:06,248 - INFO - taking picture
MAIN: 2026-06-22 22:58:06,248 - INFO - we take 988 photos in this while loop
MAIN: 2026-06-22 22:58:06,249 - INFO - /home/pi/Desktop/images/22062026/22/57/image_22062026_22_58_05_59975.jpg
MAIN: 2026-06-22 22:58:06,249 - INFO - duration: 0.9437826039938955
MAIN: 2026-06-22 22:58:06,249 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/58'
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2026-06-22 22:59:05,237 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
Using /dev/video for video capture ! 
MAIN: 2026-06-22 22:59: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-06-22 22:59:06,354 - INFO - taking picture
MAIN: 2026-06-22 22:59:06,354 - INFO - we take 989 photos in this while loop
MAIN: 2026-06-22 22:59:06,354 - INFO - /home/pi/Desktop/images/22062026/22/58/image_22062026_22_59_05_60129.jpg
MAIN: 2026-06-22 22:59:06,354 - INFO - duration: 0.9198985630064271
MAIN: 2026-06-22 22:59:06,355 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/22062026/22/59'
MAIN: 2026-06-22 23:00:04,873 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:00:05,556 - INFO - taking picture
MAIN: 2026-06-22 23:00:05,557 - INFO - we take 990 photos in this while loop
MAIN: 2026-06-22 23:00:05,557 - INFO - /home/pi/Desktop/images/22062026/22/59/image_22062026_23_00_04_59193.jpg
MAIN: 2026-06-22 23:00:05,557 - INFO - duration: 0.9288159699935932
MAIN: 2026-06-22 23: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-06-22 23:01:05,485 - INFO - taking picture
MAIN: 2026-06-22 23:01:05,485 - INFO - we take 991 photos in this while loop
MAIN: 2026-06-22 23:01:05,486 - INFO - /home/pi/Desktop/images/22062026/23/00/image_22062026_23_01_04_59885.jpg
MAIN: 2026-06-22 23:01:05,486 - INFO - duration: 0.972317256993847
MAIN: 2026-06-22 23:02:05,121 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:02:05,779 - INFO - taking picture
MAIN: 2026-06-22 23:02:05,779 - INFO - we take 992 photos in this while loop
MAIN: 2026-06-22 23:02:05,779 - INFO - /home/pi/Desktop/images/22062026/23/01/image_22062026_23_02_05_60345.jpg
MAIN: 2026-06-22 23:02:05,780 - INFO - duration: 0.9209533590037609
MAIN: 2026-06-22 23:03:04,800 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:03:05,501 - INFO - taking picture
MAIN: 2026-06-22 23:03:05,502 - INFO - we take 993 photos in this while loop
MAIN: 2026-06-22 23:03:05,502 - INFO - /home/pi/Desktop/images/22062026/23/02/image_22062026_23_03_04_59675.jpg
MAIN: 2026-06-22 23:03:05,502 - INFO - duration: 0.9678402560093673
MAIN: 2026-06-22 23:04:04,958 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:04:05,618 - INFO - taking picture
MAIN: 2026-06-22 23:04:05,619 - INFO - we take 994 photos in this while loop
MAIN: 2026-06-22 23:04:05,619 - INFO - /home/pi/Desktop/images/22062026/23/03/image_22062026_23_04_04_60154.jpg
MAIN: 2026-06-22 23:04:05,619 - INFO - duration: 0.9305083680083044
MAIN: 2026-06-22 23:05:05,928 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:05:06,588 - INFO - taking picture
MAIN: 2026-06-22 23:05:06,589 - INFO - we take 995 photos in this while loop
MAIN: 2026-06-22 23:05:06,589 - INFO - /home/pi/Desktop/images/22062026/23/04/image_22062026_23_05_05_60986.jpg
MAIN: 2026-06-22 23:05:06,589 - INFO - duration: 0.9140365040075267
MAIN: 2026-06-22 23:06:05,627 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:06:06,286 - INFO - taking picture
MAIN: 2026-06-22 23:06:06,287 - INFO - we take 996 photos in this while loop
MAIN: 2026-06-22 23:06:06,287 - INFO - /home/pi/Desktop/images/22062026/23/05/image_22062026_23_06_05_59703.jpg
MAIN: 2026-06-22 23:06:06,287 - INFO - duration: 0.9080054310034029
MAIN: 2026-06-22 23:07:05,094 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:07:05,751 - INFO - taking picture
MAIN: 2026-06-22 23:07:05,752 - INFO - we take 997 photos in this while loop
MAIN: 2026-06-22 23:07:05,752 - INFO - /home/pi/Desktop/images/22062026/23/06/image_22062026_23_07_05_59464.jpg
MAIN: 2026-06-22 23:07:05,752 - INFO - duration: 0.9083508669864386
MAIN: 2026-06-22 23:08:04,855 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:08:05,552 - INFO - taking picture
MAIN: 2026-06-22 23:08:05,552 - INFO - we take 998 photos in this while loop
MAIN: 2026-06-22 23:08:05,552 - INFO - /home/pi/Desktop/images/22062026/23/07/image_22062026_23_08_04_59800.jpg
MAIN: 2026-06-22 23:08:05,552 - INFO - duration: 0.9083498289983254
MAIN: 2026-06-22 23:09:05,627 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:09:06,331 - INFO - taking picture
MAIN: 2026-06-22 23:09:06,332 - INFO - we take 999 photos in this while loop
MAIN: 2026-06-22 23:09:06,332 - INFO - /home/pi/Desktop/images/22062026/23/08/image_22062026_23_09_05_60714.jpg
MAIN: 2026-06-22 23:09:06,332 - INFO - duration: 0.9738675590051571
MAIN: 2026-06-22 23:10:05,735 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:10:06,452 - INFO - taking picture
MAIN: 2026-06-22 23:10:06,452 - INFO - we take 1000 photos in this while loop
MAIN: 2026-06-22 23:10:06,452 - INFO - /home/pi/Desktop/images/22062026/23/09/image_22062026_23_10_05_60120.jpg
MAIN: 2026-06-22 23:10:06,452 - INFO - duration: 0.9740295779920416
MAIN: 2026-06-22 23:11:05,568 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:11:06,227 - INFO - taking picture
MAIN: 2026-06-22 23:11:06,227 - INFO - we take 1001 photos in this while loop
MAIN: 2026-06-22 23:11:06,227 - INFO - /home/pi/Desktop/images/22062026/23/10/image_22062026_23_11_05_59825.jpg
MAIN: 2026-06-22 23:11:06,227 - INFO - duration: 0.9239795530011179
MAIN: 2026-06-22 23:12:05,213 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:12:05,868 - INFO - taking picture
MAIN: 2026-06-22 23:12:05,869 - INFO - we take 1002 photos in this while loop
MAIN: 2026-06-22 23:12:05,869 - INFO - /home/pi/Desktop/images/22062026/23/11/image_22062026_23_12_05_59641.jpg
MAIN: 2026-06-22 23:12:05,869 - INFO - duration: 0.9242851479939418
MAIN: 2026-06-22 23:13:05,043 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:13:05,698 - INFO - taking picture
MAIN: 2026-06-22 23:13:05,699 - INFO - we take 1003 photos in this while loop
MAIN: 2026-06-22 23:13:05,699 - INFO - /home/pi/Desktop/images/22062026/23/12/image_22062026_23_13_05_59850.jpg
MAIN: 2026-06-22 23:13:05,699 - INFO - duration: 0.9037318959890399
MAIN: 2026-06-22 23:14:05,928 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:14:06,584 - INFO - taking picture
MAIN: 2026-06-22 23:14:06,584 - INFO - we take 1004 photos in this while loop
MAIN: 2026-06-22 23:14:06,584 - INFO - /home/pi/Desktop/images/22062026/23/13/image_22062026_23_14_05_60869.jpg
MAIN: 2026-06-22 23:14:06,584 - INFO - duration: 0.9196455779892858
MAIN: 2026-06-22 23:15:05,853 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:15:06,556 - INFO - taking picture
MAIN: 2026-06-22 23:15:06,556 - INFO - we take 1005 photos in this while loop
MAIN: 2026-06-22 23:15:06,556 - INFO - /home/pi/Desktop/images/22062026/23/14/image_22062026_23_15_05_59933.jpg
MAIN: 2026-06-22 23:15:06,556 - INFO - duration: 0.9578561459929915
MAIN: 2026-06-22 23:16:05,851 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:16:06,510 - INFO - taking picture
MAIN: 2026-06-22 23:16:06,510 - INFO - we take 1006 photos in this while loop
MAIN: 2026-06-22 23:16:06,511 - INFO - /home/pi/Desktop/images/22062026/23/15/image_22062026_23_16_05_59994.jpg
MAIN: 2026-06-22 23:16:06,511 - INFO - duration: 0.9181484530126909
MAIN: 2026-06-22 23:17:05,274 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:17:05,927 - INFO - taking picture
MAIN: 2026-06-22 23:17:05,927 - INFO - we take 1007 photos in this while loop
MAIN: 2026-06-22 23:17:05,927 - INFO - /home/pi/Desktop/images/22062026/23/16/image_22062026_23_17_05_59412.jpg
MAIN: 2026-06-22 23:17:05,927 - INFO - duration: 0.9221344859979581
MAIN: 2026-06-22 23:18:05,068 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:18:05,733 - INFO - taking picture
MAIN: 2026-06-22 23:18:05,733 - INFO - we take 1008 photos in this while loop
MAIN: 2026-06-22 23:18:05,733 - INFO - /home/pi/Desktop/images/22062026/23/17/image_22062026_23_18_05_59785.jpg
MAIN: 2026-06-22 23:18:05,733 - INFO - duration: 0.9432565230090404
MAIN: 2026-06-22 23:19:04,835 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:19:05,493 - INFO - taking picture
MAIN: 2026-06-22 23:19:05,494 - INFO - we take 1009 photos in this while loop
MAIN: 2026-06-22 23:19:05,494 - INFO - /home/pi/Desktop/images/22062026/23/18/image_22062026_23_19_04_59781.jpg
MAIN: 2026-06-22 23:19:05,494 - INFO - duration: 0.9221684980002465
MAIN: 2026-06-22 23:20:04,987 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:20:05,685 - INFO - taking picture
MAIN: 2026-06-22 23:20:05,686 - INFO - we take 1010 photos in this while loop
MAIN: 2026-06-22 23:20:05,686 - INFO - /home/pi/Desktop/images/22062026/23/19/image_22062026_23_20_04_60189.jpg
MAIN: 2026-06-22 23:20:05,686 - INFO - duration: 0.9245184390019858
MAIN: 2026-06-22 23:21:06,015 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:21:06,715 - INFO - taking picture
MAIN: 2026-06-22 23:21:06,715 - INFO - we take 1011 photos in this while loop
MAIN: 2026-06-22 23:21:06,715 - INFO - /home/pi/Desktop/images/22062026/23/20/image_22062026_23_21_06_60973.jpg
MAIN: 2026-06-22 23:21:06,715 - INFO - duration: 0.9805002640059683
MAIN: 2026-06-22 23:22:05,707 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:22:06,362 - INFO - taking picture
MAIN: 2026-06-22 23:22:06,362 - INFO - we take 1012 photos in this while loop
MAIN: 2026-06-22 23:22:06,362 - INFO - /home/pi/Desktop/images/22062026/23/21/image_22062026_23_22_05_59692.jpg
MAIN: 2026-06-22 23:22:06,362 - INFO - duration: 0.9348513610020746
MAIN: 2026-06-22 23:23:05,378 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:23:06,033 - INFO - taking picture
MAIN: 2026-06-22 23:23:06,034 - INFO - we take 1013 photos in this while loop
MAIN: 2026-06-22 23:23:06,034 - INFO - /home/pi/Desktop/images/22062026/23/22/image_22062026_23_23_05_59702.jpg
MAIN: 2026-06-22 23:23:06,034 - INFO - duration: 0.904419141006656
MAIN: 2026-06-22 23:24:04,894 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:24:05,548 - INFO - taking picture
MAIN: 2026-06-22 23:24:05,548 - INFO - we take 1014 photos in this while loop
MAIN: 2026-06-22 23:24:05,548 - INFO - /home/pi/Desktop/images/22062026/23/23/image_22062026_23_24_04_59512.jpg
MAIN: 2026-06-22 23:24:05,548 - INFO - duration: 0.9063197049981682
MAIN: 2026-06-22 23:25:05,846 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:25:06,504 - INFO - taking picture
MAIN: 2026-06-22 23:25:06,504 - INFO - we take 1015 photos in this while loop
MAIN: 2026-06-22 23:25:06,504 - INFO - /home/pi/Desktop/images/22062026/23/24/image_22062026_23_25_05_60941.jpg
MAIN: 2026-06-22 23:25:06,505 - INFO - duration: 0.9214788950048387
MAIN: 2026-06-22 23:26:05,373 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:26:06,027 - INFO - taking picture
MAIN: 2026-06-22 23:26:06,027 - INFO - we take 1016 photos in this while loop
MAIN: 2026-06-22 23:26:06,028 - INFO - /home/pi/Desktop/images/22062026/23/25/image_22062026_23_26_05_59519.jpg
MAIN: 2026-06-22 23:26:06,028 - INFO - duration: 0.9246327669970924
MAIN: 2026-06-22 23:27:05,072 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:27:05,725 - INFO - taking picture
MAIN: 2026-06-22 23:27:05,725 - INFO - we take 1017 photos in this while loop
MAIN: 2026-06-22 23:27:05,725 - INFO - /home/pi/Desktop/images/22062026/23/26/image_22062026_23_27_05_59728.jpg
MAIN: 2026-06-22 23:27:05,725 - INFO - duration: 0.8933543379971525
MAIN: 2026-06-22 23:28: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-06-22 23:28:05,687 - INFO - taking picture
MAIN: 2026-06-22 23:28:05,688 - INFO - we take 1018 photos in this while loop
MAIN: 2026-06-22 23:28:05,688 - INFO - /home/pi/Desktop/images/22062026/23/27/image_22062026_23_28_04_59916.jpg
MAIN: 2026-06-22 23:28:05,688 - INFO - duration: 0.9397803999891039
MAIN: 2026-06-22 23:29:04,991 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:29:05,686 - INFO - taking picture
MAIN: 2026-06-22 23:29:05,686 - INFO - we take 1019 photos in this while loop
MAIN: 2026-06-22 23:29:05,686 - INFO - /home/pi/Desktop/images/22062026/23/28/image_22062026_23_29_04_59990.jpg
MAIN: 2026-06-22 23:29:05,687 - INFO - duration: 0.947767899997416
MAIN: 2026-06-22 23:30:04,854 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:30:05,537 - INFO - taking picture
MAIN: 2026-06-22 23:30:05,537 - INFO - we take 1020 photos in this while loop
MAIN: 2026-06-22 23:30:05,537 - INFO - /home/pi/Desktop/images/22062026/23/29/image_22062026_23_30_04_59889.jpg
MAIN: 2026-06-22 23:30:05,538 - INFO - duration: 0.9092173200042453
MAIN: 2026-06-22 23:31: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-06-22 23:31:06,362 - INFO - taking picture
MAIN: 2026-06-22 23:31:06,362 - INFO - we take 1021 photos in this while loop
MAIN: 2026-06-22 23:31:06,362 - INFO - /home/pi/Desktop/images/22062026/23/30/image_22062026_23_31_05_60811.jpg
MAIN: 2026-06-22 23:31:06,362 - INFO - duration: 0.9225047920044744
MAIN: 2026-06-22 23:32:05,314 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:32:06,015 - INFO - taking picture
MAIN: 2026-06-22 23:32:06,015 - INFO - we take 1022 photos in this while loop
MAIN: 2026-06-22 23:32:06,015 - INFO - /home/pi/Desktop/images/22062026/23/31/image_22062026_23_32_05_59597.jpg
MAIN: 2026-06-22 23:32:06,015 - INFO - duration: 0.9780245889996877
MAIN: 2026-06-22 23:33:05,424 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:33:06,082 - INFO - taking picture
MAIN: 2026-06-22 23:33:06,083 - INFO - we take 1023 photos in this while loop
MAIN: 2026-06-22 23:33:06,083 - INFO - /home/pi/Desktop/images/22062026/23/32/image_22062026_23_33_05_60133.jpg
MAIN: 2026-06-22 23:33:06,083 - INFO - duration: 0.912129788994207
MAIN: 2026-06-22 23:34:05,155 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:34:05,808 - INFO - taking picture
MAIN: 2026-06-22 23:34:05,808 - INFO - we take 1024 photos in this while loop
MAIN: 2026-06-22 23:34:05,808 - INFO - /home/pi/Desktop/images/22062026/23/33/image_22062026_23_34_05_59718.jpg
MAIN: 2026-06-22 23:34:05,809 - INFO - duration: 0.919359216990415
MAIN: 2026-06-22 23:35:04,816 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:35:05,475 - INFO - taking picture
MAIN: 2026-06-22 23:35:05,476 - INFO - we take 1025 photos in this while loop
MAIN: 2026-06-22 23:35:05,476 - INFO - /home/pi/Desktop/images/22062026/23/34/image_22062026_23_35_04_59714.jpg
MAIN: 2026-06-22 23:35:05,476 - INFO - duration: 0.8725040389981586
MAIN: 2026-06-22 23:36: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-06-22 23:36:05,419 - INFO - taking picture
MAIN: 2026-06-22 23:36:05,419 - INFO - we take 1026 photos in this while loop
MAIN: 2026-06-22 23:36:05,419 - INFO - /home/pi/Desktop/images/22062026/23/35/image_22062026_23_36_04_59906.jpg
MAIN: 2026-06-22 23:36:05,419 - INFO - duration: 0.9088301519950619
MAIN: 2026-06-22 23:37:05,613 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:37:06,319 - INFO - taking picture
MAIN: 2026-06-22 23:37:06,319 - INFO - we take 1027 photos in this while loop
MAIN: 2026-06-22 23:37:06,319 - INFO - /home/pi/Desktop/images/22062026/23/36/image_22062026_23_37_05_60857.jpg
MAIN: 2026-06-22 23:37:06,319 - INFO - duration: 0.9515135699912207
MAIN: 2026-06-22 23:38: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-06-22 23:38:06,238 - INFO - taking picture
MAIN: 2026-06-22 23:38:06,238 - INFO - we take 1028 photos in this while loop
MAIN: 2026-06-22 23:38:06,239 - INFO - /home/pi/Desktop/images/22062026/23/37/image_22062026_23_38_05_59903.jpg
MAIN: 2026-06-22 23:38:06,239 - INFO - duration: 0.967110611993121
MAIN: 2026-06-22 23:39: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-06-22 23:39:05,902 - INFO - taking picture
MAIN: 2026-06-22 23:39:05,903 - INFO - we take 1029 photos in this while loop
MAIN: 2026-06-22 23:39:05,903 - INFO - /home/pi/Desktop/images/22062026/23/38/image_22062026_23_39_05_59721.jpg
MAIN: 2026-06-22 23:39:05,903 - INFO - duration: 0.9100170389865525
MAIN: 2026-06-22 23:40:04,822 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:40:05,480 - INFO - taking picture
MAIN: 2026-06-22 23:40:05,480 - INFO - we take 1030 photos in this while loop
MAIN: 2026-06-22 23:40:05,480 - INFO - /home/pi/Desktop/images/22062026/23/39/image_22062026_23_40_04_59615.jpg
MAIN: 2026-06-22 23:40:05,480 - INFO - duration: 0.8720019330066862
MAIN: 2026-06-22 23:41: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-06-22 23:41:06,401 - INFO - taking picture
MAIN: 2026-06-22 23:41:06,402 - INFO - we take 1031 photos in this while loop
MAIN: 2026-06-22 23:41:06,402 - INFO - /home/pi/Desktop/images/22062026/23/40/image_22062026_23_41_05_60809.jpg
MAIN: 2026-06-22 23:41:06,402 - INFO - duration: 0.9844537469907664
MAIN: 2026-06-22 23:42:05,570 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:42:06,252 - INFO - taking picture
MAIN: 2026-06-22 23:42:06,252 - INFO - we take 1032 photos in this while loop
MAIN: 2026-06-22 23:42:06,252 - INFO - /home/pi/Desktop/images/22062026/23/41/image_22062026_23_42_05_59898.jpg
MAIN: 2026-06-22 23:42:06,252 - INFO - duration: 0.9358391380083049
MAIN: 2026-06-22 23:43: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-06-22 23:43:05,671 - INFO - taking picture
MAIN: 2026-06-22 23:43:05,671 - INFO - we take 1033 photos in this while loop
MAIN: 2026-06-22 23:43:05,672 - INFO - /home/pi/Desktop/images/22062026/23/42/image_22062026_23_43_05_59424.jpg
MAIN: 2026-06-22 23:43:05,672 - INFO - duration: 0.930894867007737
MAIN: 2026-06-22 23:44:05,369 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:44:06,023 - INFO - taking picture
MAIN: 2026-06-22 23:44:06,024 - INFO - we take 1034 photos in this while loop
MAIN: 2026-06-22 23:44:06,024 - INFO - /home/pi/Desktop/images/22062026/23/43/image_22062026_23_44_05_60382.jpg
MAIN: 2026-06-22 23:44:06,024 - INFO - duration: 0.9009155080129858
MAIN: 2026-06-22 23:45: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-06-22 23:45:05,701 - INFO - taking picture
MAIN: 2026-06-22 23:45:05,701 - INFO - we take 1035 photos in this while loop
MAIN: 2026-06-22 23:45:05,702 - INFO - /home/pi/Desktop/images/22062026/23/44/image_22062026_23_45_04_59656.jpg
MAIN: 2026-06-22 23:45:05,702 - INFO - duration: 0.9223723259929102
MAIN: 2026-06-22 23:46: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-06-22 23:46:05,648 - INFO - taking picture
MAIN: 2026-06-22 23:46:05,648 - INFO - we take 1036 photos in this while loop
MAIN: 2026-06-22 23:46:05,648 - INFO - /home/pi/Desktop/images/22062026/23/45/image_22062026_23_46_04_59954.jpg
MAIN: 2026-06-22 23:46:05,648 - INFO - duration: 0.914046508987667
MAIN: 2026-06-22 23:47: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-06-22 23:47:06,340 - INFO - taking picture
MAIN: 2026-06-22 23:47:06,341 - INFO - we take 1037 photos in this while loop
MAIN: 2026-06-22 23:47:06,341 - INFO - /home/pi/Desktop/images/22062026/23/46/image_22062026_23_47_05_60666.jpg
MAIN: 2026-06-22 23:47:06,341 - INFO - duration: 0.9404951870092191
MAIN: 2026-06-22 23:48:05,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

MAIN: 2026-06-22 23:48:06,317 - INFO - taking picture
MAIN: 2026-06-22 23:48:06,318 - INFO - we take 1038 photos in this while loop
MAIN: 2026-06-22 23:48:06,318 - INFO - /home/pi/Desktop/images/22062026/23/47/image_22062026_23_48_05_60013.jpg
MAIN: 2026-06-22 23:48:06,318 - INFO - duration: 0.9039590850006789
MAIN: 2026-06-22 23:49:05,266 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:49:05,970 - INFO - taking picture
MAIN: 2026-06-22 23:49:05,970 - INFO - we take 1039 photos in this while loop
MAIN: 2026-06-22 23:49:05,971 - INFO - /home/pi/Desktop/images/22062026/23/48/image_22062026_23_49_05_59578.jpg
MAIN: 2026-06-22 23:49:05,971 - INFO - duration: 0.977946436003549
MAIN: 2026-06-22 23:50:05,570 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:50:06,227 - INFO - taking picture
MAIN: 2026-06-22 23:50:06,227 - INFO - we take 1040 photos in this while loop
MAIN: 2026-06-22 23:50:06,227 - INFO - /home/pi/Desktop/images/22062026/23/49/image_22062026_23_50_05_60365.jpg
MAIN: 2026-06-22 23:50:06,227 - INFO - duration: 0.8684705039922846
MAIN: 2026-06-22 23:51:05,295 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:51:06,003 - INFO - taking picture
MAIN: 2026-06-22 23:51:06,003 - INFO - we take 1041 photos in this while loop
MAIN: 2026-06-22 23:51:06,004 - INFO - /home/pi/Desktop/images/22062026/23/50/image_22062026_23_51_05_59670.jpg
MAIN: 2026-06-22 23:51:06,004 - INFO - duration: 0.9742021249985555
MAIN: 2026-06-22 23:52:05,406 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:52:06,061 - INFO - taking picture
MAIN: 2026-06-22 23:52:06,062 - INFO - we take 1042 photos in this while loop
MAIN: 2026-06-22 23:52:06,062 - INFO - /home/pi/Desktop/images/22062026/23/51/image_22062026_23_52_05_60111.jpg
MAIN: 2026-06-22 23:52:06,062 - INFO - duration: 0.9212582509935601
MAIN: 2026-06-22 23:53:05,484 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:53:06,189 - INFO - taking picture
MAIN: 2026-06-22 23:53:06,190 - INFO - we take 1043 photos in this while loop
MAIN: 2026-06-22 23:53:06,190 - INFO - /home/pi/Desktop/images/22062026/23/52/image_22062026_23_53_05_60087.jpg
MAIN: 2026-06-22 23:53:06,190 - INFO - duration: 0.9622863670083461
MAIN: 2026-06-22 23:54:05,250 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:54:05,947 - INFO - taking picture
MAIN: 2026-06-22 23:54:05,947 - INFO - we take 1044 photos in this while loop
MAIN: 2026-06-22 23:54:05,947 - INFO - /home/pi/Desktop/images/22062026/23/53/image_22062026_23_54_05_59751.jpg
MAIN: 2026-06-22 23:54:05,948 - INFO - duration: 0.9681432590004988
MAIN: 2026-06-22 23:55:04,944 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:55:05,647 - INFO - taking picture
MAIN: 2026-06-22 23:55:05,647 - INFO - we take 1045 photos in this while loop
MAIN: 2026-06-22 23:55:05,647 - INFO - /home/pi/Desktop/images/22062026/23/54/image_22062026_23_55_04_59752.jpg
MAIN: 2026-06-22 23:55:05,647 - INFO - duration: 0.9158208769949852
MAIN: 2026-06-22 23:56:05,328 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:56:06,027 - INFO - taking picture
MAIN: 2026-06-22 23:56:06,027 - INFO - we take 1046 photos in this while loop
MAIN: 2026-06-22 23:56:06,027 - INFO - /home/pi/Desktop/images/22062026/23/55/image_22062026_23_56_05_60314.jpg
MAIN: 2026-06-22 23:56:06,027 - INFO - duration: 0.9810872659872985
MAIN: 2026-06-22 23:57:05,245 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:57:05,947 - INFO - taking picture
MAIN: 2026-06-22 23:57:05,947 - INFO - we take 1047 photos in this while loop
MAIN: 2026-06-22 23:57:05,947 - INFO - /home/pi/Desktop/images/22062026/23/56/image_22062026_23_57_05_59926.jpg
MAIN: 2026-06-22 23:57:05,947 - INFO - duration: 0.9741248939972138
MAIN: 2026-06-22 23:58:05,206 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:58:05,907 - INFO - taking picture
MAIN: 2026-06-22 23:58:05,907 - INFO - we take 1048 photos in this while loop
MAIN: 2026-06-22 23:58:05,907 - INFO - /home/pi/Desktop/images/22062026/23/57/image_22062026_23_58_05_59934.jpg
MAIN: 2026-06-22 23:58:05,908 - INFO - duration: 1.000443123994046
MAIN: 2026-06-22 23:59:05,035 - INFO - Driver Info:
	Driver name      : uvcvideo
	Card type        : Arducam IMX477 HQ Camera: Arduc
	Bus info         : usb-0000:01:00.0-1.4
	Driver version   : 5.4.79
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : Arducam IMX477 HQ Camera: Arduc
	Serial           : UC517
	Bus info         : usb-0000:01:00.0-1.4
	Media version    : 5.4.79
	Hardware revision: 0x00000100 (256)
	Driver version   : 5.4.79
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Arducam IMX477 HQ Camera: Arduc
	Function         : V4L2 I/O
	Flags         : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000010: from remote pad 0x100000a of entity 'Extension 3': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 3840/2160
	Pixel Format      : 'MJPG' (Motion-JPEG)
	Field             : None
	Bytes per Line    : 0
	Size Image        : 16589389
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 3840, Height 2160
	Default     : Left 0, Top 0, Width 3840, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 20.000 (20/1)
	Read buffers     : 0
                     brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=0
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=128 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-40 max=40 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=72 max=500 step=1 default=100 value=100
                           gain 0x00980913 (int)    : min=0 max=100 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=6 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=1 max=5000 step=1 default=157 value=157 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                     focus_auto 0x009a090c (bool)   : default=1 value=1

MAIN: 2026-06-22 23:59:05,730 - INFO - taking picture
MAIN: 2026-06-22 23:59:05,730 - INFO - we take 1049 photos in this while loop
MAIN: 2026-06-22 23:59:05,730 - INFO - /home/pi/Desktop/images/22062026/23/58/image_22062026_23_59_05_59853.jpg
MAIN: 2026-06-22 23:59:05,730 - INFO - duration: 0.9699872930068523
